Bug 43091 - astyle command line error
Bug#: 43091 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: karltk@gentoo.org Reported By: hrk@users.sourceforge.net
Component: Applications
URL: 
Summary: astyle command line error
Keywords:  
Status Whiteboard: 
Opened: 2004-02-27 05:36 0000
Description:   Opened: 2004-02-27 05:36 0000
Hi,

astyle has a bug in its command line parameters parsing routine which affects the --force-indent=tab=# and --indent=tab=# options.

I have fixed it and contacted the author to his SourceForge.net email address, but I still haven't received an answer. I am attaching a diff file (-Naur, as somebody asked me :-)) for the file astyle_main.cpp

Reproducible: Always
Steps to Reproduce:
1. astyle --force-indent=tab=4
2.
3.

Actual Results:  
The program refuses the option (but it's documented in the --help output!)

Expected Results:  
It should not refuse the option (and should use it!)

------- Comment #1 From Luca Santarelli 2004-02-27 05:37:00 0000 -------
Created an attachment (id=26467) [details]
Patch for command line parsing error.

------- Comment #2 From Karl Trygve Kalleberg (RETIRED) 2004-03-28 10:17:15 0000 -------
Fixed. Available as dev-util/astyle-1.15.3-r1.