Skip to content

Commit

Permalink
print error and usage on an unrecognized command
Browse files Browse the repository at this point in the history
  • Loading branch information
Guiorgy committed Feb 7, 2024
1 parent f12728a commit 438528a
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 438528a

Please sign in to comment.