From aa3dfa90cef7152a3b3e002fa98456d89de40eea Mon Sep 17 00:00:00 2001 From: la-ninpre Date: Sat, 11 Sep 2021 01:32:41 +0300 Subject: refactor gemlog-new script --- gemlog-new | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gemlog-new b/gemlog-new index 29072d9..76da00c 100755 --- a/gemlog-new +++ b/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 " + 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 @@ main() { 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" ;; -- cgit v1.2.3