Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 68588 - gensync from app-portage/gentoolkit-dev-0.2.0_pre4 doesn't read cli-options properly (-C, --no-color)
Summary: gensync from app-portage/gentoolkit-dev-0.2.0_pre4 doesn't read cli-options p...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Karl Trygve Kalleberg (RETIRED)
URL:
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks:
 
Reported: 2004-10-22 13:32 UTC by Emil Beinroth
Modified: 2006-10-19 16:33 UTC (History)
1 user (show)

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


Attachments
Patch that uses gnu_getopt to get the cli-opts/args (gensync_getopt.patch,1.44 KB, patch)
2004-10-26 10:47 UTC, Emil Beinroth
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Emil Beinroth 2004-10-22 13:32:08 UTC
When I call gensync with -C or --no-color it's not doing anything at all.
gensync -C -h or gensync -C -a .. or anything with -C before a 'action' (--all-sources, --version, --help or a syncsource-id) shows this behavior.
The reasons it the break at line 170 in /usr/bin/gensync:

        elif x in ["-C", "--no-color"]:
            options.append("nocolor")
            break


Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Emil Beinroth 2004-10-26 10:47:26 UTC
Created attachment 42645 [details, diff]
Patch that uses gnu_getopt to get the cli-opts/args

Fixes the -C --no-color problem and uses gnu_getopt to parse cli-opts/args.
Now you can do gensync -Ch or gensync -hC .. and so on.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-10-19 16:33:42 UTC
Please, reopen if this is still and issue with latest gentoolkit-dev, this bug got completely misassigned.