-
Notifications
You must be signed in to change notification settings - Fork 904
mpirun --help output revamp #3231
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
Conversation
orte/mca/schizo/ompi/schizo_ompi.c
Outdated
"This help message" }, | ||
{ NULL, 'h', NULL, "help", 1, | ||
&orte_cmd_options.help, OPAL_CMD_LINE_TYPE_STRING, | ||
"This help message. Argument options are:\n\t\t\t general - General arguments (Defaults to this option)\n\t\t\t debug - Arguments usefull for debugging\n\t\t\t output - Arguments to modify output options\n\t\t\t input - Arguments to modify input options\n\t\t\t mapping - Mapping arguments\n\t\t\t ranking - Ranking arguments\n\t\t\t binding - Binding arguments\n\t\t\t devel - Arguments usefull to OMPI Developers\n\t\t\t compatibility - Arguments supported for backwards compatibility\n\t\t\t launch - Arguments to modify launch options\n\t\t\t dvm - Distributed Virtual Machine arguments", OPAL_CMD_LINE_OTYPE_GENERAL }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This message still needs to be cleaned up, but I wanted to get the everything up so people could look at it and comment on it.
@jsquyres @rhc54 @hppritcha Please review |
@nrgraham23 could you rebase to fix the conflicts? |
d29d70f
to
5535078
Compare
@hppritcha #3242 created the conflict. I have rebased and fixed the help message, so this is good to go unless there is a request for a change. |
@nrgraham23 For bonus points if you can add a --help-parsable (or something similar) that would be awesome. Right now the completion scripts hand-code the options so need to be updated every time an option is added/removed. You can take a look at ompi_info's parsable output for an example. If you do that I will totally write bash/zsh completion scripts for all of our user-facing binaries. |
@hjelmn I will check that out. Probably won't get to it until next week though. |
This commit modifies the output from the mpirun --help command. The options have been split into groups, to make the output smaller and more readable. The groups are: general, debug, output, input, mapping, ranking, binding, devel, compatibility, launch, dvm, and unsupported. There is also a special "full" command that can be used to get the old behaviour of printing out all of the options. Unsupported options may only be seen with this full output. This commit also adds a special case for the help argument. It makes it possible for the user to enter 0 or 1 arguments instead of having to always enter an argument. This defaults to printing out the "general" help options so the user can then see what help arguments there are. Signed-off-by: Nathaniel Graham <[email protected]>
5535078
to
19e5d15
Compare
Going to merge this afternoon if there are no objections. |
This has been up for a week, merging now. |
I notice that after this PR, I get output like this:
I'm sorry I missed the review period, but I have two questions / observations:
|
1: The default list of options was picked from the "General" category of options from the categories listed in the google doc linked in #2931 2: Currently the optional arguments are listed in the help message: -h|--help Help messages. Argument options are: general I was a little surprised no one had any comments on the changes, but I would be happy to make changes. |
@nrgraham23 Ah, gotcha on both points. Sorry I missed these points during review. 😦 Let's do two things:
|
@jsquyres Thats alright. The first changes will be fairly simple. The second change may take a little hacking. I should have time to make the changes and get a PR up tomorrow. |
Thank you! @rhc54 @hppritcha What do you guys think of my re-classifications (above)? |
Looks good to me. |
This commit modifies the output from the mpirun --help
command. The options have been split into groups, to
make the output smaller and more readable. The groups
are: general, debug, output, input, mapping, ranking,
binding, devel, compatibility, launch, dvm, and
unsupported. There is also a special "full" command
that can be used to get the old behaviour of printing
out all of the options. Unsupported options may only
be seen with this full output.
This commit also adds a special case for the help
argument. It makes it possible for the user to
enter 0 or 1 arguments instead of having to always
enter an argument. This defaults to printing out
the "general" help options so the user can then
see what help arguments there are.
Fixes #2931
Signed-off-by: Nathaniel Graham [email protected]