Skip to content

better formatting of cmdline option error #2285

@pmoravec

Description

@pmoravec

Two issues spotted in scenario:

# python3 bin/sos report --all-logs=on
usage: sos report [options]
sos <component> [options]

Available components:
	report, rep                   Collect files and command output in an archive
	clean, cleaner, mask          Obfuscate sensitive networking information in a report
	collect, collector            Collect an sos report from multiple nodes simultaneously report: error: argument --all-logs: ignored explicit argument 'on'
  • the formatting lacks newlines before "report: error: .." (or ideally print just the report error but not the usage? as clearly we used proper component?)
  • I think we should support "on/off/yes/no" to enable/disable cmdline options, likewise we do in config file

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions