Skip to content

Exit code 2 if bad command-line options #299

Description

@bact

Establish the code for System.exit() to assist scripting.

For example, for Verify command, the meaning of exit codes can be:

  • 0 - tool runs fine, valid SPDX document
  • 1 - tool runs fine, invalid SPDX document
  • 2 - you run the tool in a wrong way

This semantics align with bash, grep, diff, and Python argparse.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions