Skip to content

cmd_line: fix "ompi_info --help" #10850

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

Merged
merged 1 commit into from
Sep 26, 2022

Conversation

jsquyres
Copy link
Member

cmd_line.c was previously given some mpirun-specific functionality, ignoring the fact that it is used by other executables (in this case, ompi_info). This commit removes an mpirun-specific output message when generating the help message from an ompi_cmd_line_t (since Open MPI's mpirun doesn't even use opal_cmd_line_t any more) and also changes the default for all cmd_line options to be of type OPAL_CMD_LINE_OTYPE_GENERAL (instead of OPAL_CMD_LINE_OTYPE_NULL) so that " --help" (with no argument) will, by default, show that option's description/help message.

Thanks to George Katevenis (@gkatev) for pointing out the issue and suggesting a fix.

Signed-off-by: Jeff Squyres [email protected]

@gkatev In digging into #10842, I opted to just make all options created by _opt3 be of type OTYPE_GENERAL (instead of OTYPE_NULL) in order to preserve the difference between "this help content is shown by default" vs. "this help content is shown when all help is specifically requested".

cmd_line.c was previously given some mpirun-specific functionality,
ignoring the fact that it is used by other executables (in this case,
ompi_info).  This commit removes an mpirun-specific output message
when generating the help message from an ompi_cmd_line_t (since Open
MPI's mpirun doesn't even use opal_cmd_line_t any more) and also
changes the default for all cmd_line options to be of type
OPAL_CMD_LINE_OTYPE_GENERAL (instead of OPAL_CMD_LINE_OTYPE_NULL) so
that "<cmd> --help" (with no argument) will, by default, show that
option's description/help message.

Thanks to George Katevenis for pointing out the issue and suggesting a
fix.

Signed-off-by: Jeff Squyres <[email protected]>
@jsquyres jsquyres merged commit e67d1aa into open-mpi:main Sep 26, 2022
@jsquyres jsquyres deleted the pr/fix-ompi-info-help branch September 26, 2022 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants