Skip to content

Commit

Permalink
Merge pull request #18 from Guiorgy/handle-unrecognized-commands
Browse files Browse the repository at this point in the history
print error and usage on an unrecognized command
  • Loading branch information
BretFisher authored Oct 25, 2024
2 parents 82290fa + 438528a commit d129222
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vackup
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ case "$COMMAND" in
import) cmd_import "$@" ;;
save) cmd_save "$@" ;;
load) cmd_load "$@" ;;
*) echo "Error: '$COMMAND' is not a recognized command" ; usage ;;
esac

exit 0

0 comments on commit d129222

Please sign in to comment.