Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 43091 - astyle command line error
Summary: astyle command line error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Karl Trygve Kalleberg (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-27 05:36 UTC by Luca Santarelli
Modified: 2004-03-28 10:17 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch for command line parsing error. (fix.diff,5.69 KB, patch)
2004-02-27 05:37 UTC, Luca Santarelli
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.