Skip to content

Change default exit codes #700

@remkop

Description

@remkop

Default exit codes in 4.0-alpha-3 are based on the FreeBSD exit codes. These are frequently cited but do not seem to be used in popular unix utilities.

It may make sense to simplify the default picocli exit codes to 1 for software exceptions in the client code, and 2 for invalid usage. This follows the recommendation of this StackOverflow answer.

We can add the following links to the javadoc of the ExitCode class:

Note that *nix shells may restrict exit codes to the 0-255 range, DOS seems to allow larger numbers. See https://stackoverflow.com/questions/179565/exitcodes-bigger-than-255-possible

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions