mitchellh / cli

A Go library for implementing command-line interfaces.
Mozilla Public License 2.0
1.73k stars 123 forks source link

Use exit code 127 when a subcommand is not found #66

Closed sethvargo closed 7 years ago

sethvargo commented 7 years ago

This is canonical as a both a shell exit code as well as how git and other tools behave. There's no easy way to differentiate between a missing subcommand and an actual command error.