Skip to content

Argument errors: Hide traceback #1

Description

@wagner-intevation

The current output is very long:

$ csaf-modifier --publisher-name Name
Traceback (most recent call last):
  File "/home/sebastianw/dev/csaf-modifier/.venv/bin/csaf-modifier", line 6, in <module>
    sys.exit(main())
             ~~~~^^
  File "/home/sebastianw/dev/csaf-modifier/csaf_modifier/cli.py", line 138, in main
    new_csaf_doc = apply_publisher(new_csaf_doc, args)
  File "/home/sebastianw/dev/csaf-modifier/csaf_modifier/modifier.py", line 78, in apply_publisher
    raise ArgumentTypeError(
        "All of --publisher-category, --publisher-name and --publisher-namespace "
        "must be given, if one of them is given")
argparse.ArgumentTypeError: All of --publisher-category, --publisher-name and --publisher-namespace must be given, if one of them is given

The traceback is very long. all but the actual error text can be hidden.

Metadata

Metadata

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