Show usage if no command is passed

This commit is contained in:
Oliver Davies 2025-09-21 20:00:01 +01:00
parent f72f97e6cd
commit 4e51264c24

5
zet
View file

@ -131,6 +131,11 @@ get_title_from_file() {
main() { main() {
COMMAND="$1" COMMAND="$1"
if [[ -z "$COMMAND" ]]; then
show_usage
exit 1
fi
case "$COMMAND" in case "$COMMAND" in
create | c) create | c)
shift 1 shift 1