1
0
mirror of https://github.com/RyanGreenup/cadmus.git synced 2025-08-16 02:54:40 +02:00

Changed Help Shortcut, Removed Duplicate Entry

This commit is contained in:
Ryan Greenup
2020-07-20 21:03:57 +10:00
parent a21cab42f2
commit b5f4e28f91

View File

@@ -105,7 +105,7 @@ arguments () {
while test $# -gt 0 while test $# -gt 0
do do
case "$1" in 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 find|f) shift; NoteFind "${NOTES_DIR}" "${@:-}" ## Don't steal function name
;; ;;
@@ -123,13 +123,11 @@ arguments () {
;; ;;
publish|pub) shift; CadmusPublish "${@:-}" 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|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 preview!) shift; previewGlobal
;; ;;
help) subHelp && exit 0 help|h) subHelp && exit 0
;; ;;
--*) >&2 echo "bad option $1" --*) >&2 echo "bad option $1"
;; ;;