-
-
Notifications
You must be signed in to change notification settings - Fork 316
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
scons -h should print new options #2356
Comments
The current behavior is documented, but I don't like it either. All options added via |
As noted in issue SCons#2356 (which this change does not complete/close), the final line of help if the help message has been modified is 'Use scons -H for help about command-line options.'. This fails to mention that -H prints only those options that are defined in SCons itself, not options added via AddOption. Adjust the message to better indicate this. Signed-off-by: Mats Wichmann <mats@linux.com>
I have an implementation that fishes the help out of the local option group. The question now is what the right way to present this is. Help(txt) # all existing help text is tossed
Help(txt, append=True) # full help is saved, SCons + AddOption
Help(txt, local_only=True) # SCons help is tossed, but AddOption text is saved It feels to me that the primary behavior should be that of the tentatively-named Also the sense of the flags could change: in the experimental version you need |
An additional keyword argument, "local_only", is now recorgnized by Help(). If true, and "append" is True, then only project-defined help messages are saved into the help text. That is, save help added by calls to AddOption, but not SCons' own help, which is added a different way. Fixes SCons#2356 Fixes SCons#3686 Signed-off-by: Mats Wichmann <mats@linux.com>
An additional keyword argument, "local_only", is now recorgnized by Help(). If true, and "append" is True, then only project-defined help messages are saved into the help text. That is, save help added by calls to AddOption, but not SCons' own help, which is added a different way. Fixes SCons#2356 Fixes SCons#3686 Signed-off-by: Mats Wichmann <mats@linux.com>
This issue was originally created at: 2009-02-24 13:54:13.
This issue was reported by:
stevenknight
.If you add options to SCons via
AddOption()
, SCons will print them in its optparse-style help shown byscons -h
.However, if you also add help text via
Help()
, SCons no longer prints the optparse-style help. You can still see help on SCons's built-in command line options usingscons -H
, but since that doesn't parse the SConscript files it doesn't show any of the added options.The feature request is for SCons to maintain a second optparse instance containing only the options added via
AddOption()
. If help text has been added viaHelp()
, SCons could print only the optparse help for this second optparse instance, followed by the text added viaHelp()
.The text of the final line of help: 'Use scons -H for help about command-line options.' should also be changed to something like 'Use scons -H for help about scons built-in command-line options.' since it doesn't print help about ALL command line options, only those built into SCons.
Bug party triage.
stevenknight => issues@scons
The text was updated successfully, but these errors were encountered: