Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 43091

Summary: astyle command line error
Product: Gentoo Linux Reporter: Luca Santarelli <luca.santarelli>
Component: Current packagesAssignee: Karl Trygve Kalleberg (RETIRED) <karltk>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch for command line parsing error.

Description Luca Santarelli 2004-02-27 05:36:07 UTC
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 Luca Santarelli 2004-02-27 05:37:00 UTC
Created attachment 26467 [details, diff]
Patch for command line parsing error.
Comment 2 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2004-03-28 10:17:15 UTC
Fixed. Available as dev-util/astyle-1.15.3-r1.