diff options
author | Jake Hunsaker <jhunsake@redhat.com> | 2020-11-09 18:13:31 -0500 |
---|---|---|
committer | Jake Hunsaker <jhunsake@redhat.com> | 2020-11-10 12:17:50 -0500 |
commit | 4eef30fa8e5cfbc1a154a669396c0635fb36a5ad (patch) | |
tree | db65b1f499cac61353ad6c4e2fe67b4dfeea2ff1 /.gitignore | |
parent | dfd6fe7acdac5d7e96c0aa06c287d164241bba4c (diff) | |
download | sos-4eef30fa8e5cfbc1a154a669396c0635fb36a5ad.tar.gz |
[sos] Fix argparse error output formatting
Error message propagation from the subparsers was causing the error
message to be mangled with the usage string from the "main" parser when
an invalid argument value was passed.
After discussion with python upstream, while this is an issue with the
subparser formatting (as %(prog) is being set to the main parser's
usage), there are simple paths around this behavior so a code change
there will not be forthcoming.
Instead, override the subparser's prog to be a single line string
instead of the main parser's usage string.
Closes: #2285
Resolves: #2301
Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions