Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AddOption not shown in help if Variables used #2831

Closed
bdbaddog opened this issue Jan 2, 2018 · 0 comments
Closed

AddOption not shown in help if Variables used #2831

bdbaddog opened this issue Jan 2, 2018 · 0 comments

Comments

@bdbaddog
Copy link
Contributor

bdbaddog commented Jan 2, 2018

This issue was originally created at: 2012-04-11 05:09:59.
This issue was reported by: mortoray.
mortoray said at 2012-04-11 05:09:59

The AddOption functionality includes help text which will be shown if you use '-h'. However, if you also use Variables help the option text will be lost -- if you use Help(vars.generateHelpText(env)).

There appears to be no clear way to generate the options help text so it can't simply be appended to the variables help text.

The -H option also fails to show the options help text.

Essentially you can't combine options and variables and have a working help text.

mortoray said at 2012-04-30 11:28:38

Essentially duplicate of #2258

dirkbaechle said at 2014-02-08 08:29:48

*** Issue 2258 has been marked as a duplicate of this issue. ***

billcroberts said at 2015-03-17 14:56:34

Test SConstruct to reproduce bug:

AddOption(
    "--debugging",
    dest="debugging",
    action="store_true",
    default=False,
    metavar="BDEBUGGING",
    help="Compile with debugging symbols",
)

vars = Variables()
vars.Add(ListVariable("buildmod", "List of modules to build", "none", ["python"]))

env = Environment()
 
# Comment me out for different help outputs
Help(vars.GenerateHelpText(env))

bdbaddog said at 2015-09-29 08:57:08

Fixed with commit ef05fbf9b1bf.

Should be released with SCons 2.4.1

dirkbaechle said this issue is duplicated by #2258 at 2014-02-08 08:29:48.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant