Skip to content

compliance_tool CLI: --quite flag is a typo, should be --quiet #505

@zrgt

Description

@zrgt

Summary

Severity: Low
File: compliance_tool/aas_compliance_tool/cli.py:79,182

Description

The public CLI flag is --quite instead of --quiet. It is consistent throughout (definition + usage) so no runtime crash occurs, but any user or script using the standard --quiet convention gets unrecognized arguments: --quiet.

parser.add_argument('-q', '--quite', ...)   # line 79 — should be --quiet
...
if manager.status is Status.SUCCESS and args.quite:  # line 182

Additionally, line 180 contains dead code — parser.error() calls sys.exit(2) internally, making the exit() on the next line unreachable.

Fix

  • Rename --quite--quiet in add_argument (line 79) and all references.
  • Remove the unreachable exit() on line 180.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcompliance-toolSomething to do with the Compliance Tool packageenhancementEnhancement of an existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions