Surround mutually exclusive arguments with curly braces

This commit is contained in:
OZAWA Sakuro 2019-09-02 11:55:09 +09:00
parent 503263a68d
commit b26f56692d

View File

@ -81,7 +81,7 @@ global_command() {
# Output from this command must be executable shell code # Output from this command must be executable shell code
shell_command() { shell_command() {
if [ "$#" -lt "2" ]; then if [ "$#" -lt "2" ]; then
echo "Usage: asdf shell <name> <version> | --unset" >&2 echo "Usage: asdf shell <name> {<version>|--unset}" >&2
echo 'false' echo 'false'
exit 1 exit 1
fi fi