From b5f4e28f9132d33522b2b904a7cd509c5533a26a Mon Sep 17 00:00:00 2001 From: Ryan Greenup Date: Mon, 20 Jul 2020 21:03:57 +1000 Subject: [PATCH] Changed Help Shortcut, Removed Duplicate Entry --- bin/cadmus | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/bin/cadmus b/bin/cadmus index b0af059..547e285 100755 --- a/bin/cadmus +++ b/bin/cadmus @@ -105,7 +105,7 @@ arguments () { while test $# -gt 0 do case "$1" in - --help|help|-h) mainHelp && exit 0 + --help|-h) mainHelp && exit 0 ;; find|f) shift; NoteFind "${NOTES_DIR}" "${@:-}" ## Don't steal function name ;; @@ -123,13 +123,11 @@ arguments () { ;; publish|pub) shift; CadmusPublish "${@:-}" ;; - publish) shift; CadmusPublish "${@:-}" - ;; preview|p) shift; cd "${NOTES_DIR}" && markserv || echo -e " \n \e[1;34m maybe fix this with:\n\tsudo fuser 35729/tcp -k \n \tor\n\tkillall markserv \e[0m\n" ;; preview!) shift; previewGlobal ;; - help) subHelp && exit 0 + help|h) subHelp && exit 0 ;; --*) >&2 echo "bad option $1" ;;