Show usage if no command is passed
This commit is contained in:
parent
f72f97e6cd
commit
4e51264c24
1 changed files with 5 additions and 0 deletions
5
zet
5
zet
|
@ -131,6 +131,11 @@ get_title_from_file() {
|
|||
main() {
|
||||
COMMAND="$1"
|
||||
|
||||
if [[ -z "$COMMAND" ]]; then
|
||||
show_usage
|
||||
exit 1
|
||||
fi
|
||||
|
||||
case "$COMMAND" in
|
||||
create | c)
|
||||
shift 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue