refactor gemlog-new script
la-ninpre leobrekalini@gmail.com
Sat, 11 Sep 2021 01:32:41 +0300
1 files changed,
5 insertions(+),
5 deletions(-)
jump to
M
gemlog-new
→
gemlog-new
@@ -20,15 +20,15 @@ usage() {
echo "add new post to gemlog" echo echo "this script is using gemini subscription specification and also \ - utilizes gemlikes utility for likes and comments" +utilizes gemlikes utility for likes and comments" echo echo "usage:" echo " $0 [OPTIONS]" echo echo "options:" - echo " -t, --title <title>" + echo " -T, --title <title>" echo " specify new post title" - echo " -g, --tags <tags>" + echo " -t, --tags <tags>" echo " specify new post tags (space separated, now they are just decorative)" echo " -h, --help" echo " print this help message"@@ -78,11 +78,11 @@ then
while [ -n "$1" ] do case "$1" in - --title|-t) + --title|-T) shift _new_post_title="$1" ;; - --tags|-g) + --tags|-t) shift _new_post_tags="$1" ;;