diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-03-01 19:30:33 +0200 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-03-01 19:30:33 +0200 |
commit | 3ca95b33f2dc650b384a96dc1d3aa3d8d18553d1 (patch) | |
tree | 83dcd8a473d78788e852bccfc3b187ab7b54e466 /bin/ak-categories | |
parent | f8d2236e55e5c369b218017d1de1058d6a8ee361 (diff) | |
download | arching-kaos-tools-3ca95b33f2dc650b384a96dc1d3aa3d8d18553d1.tar.gz arching-kaos-tools-3ca95b33f2dc650b384a96dc1d3aa3d8d18553d1.tar.bz2 arching-kaos-tools-3ca95b33f2dc650b384a96dc1d3aa3d8d18553d1.zip |
Changes help subcommand to flag style -h, --help
Diffstat (limited to 'bin/ak-categories')
-rwxr-xr-x | bin/ak-categories | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/bin/ak-categories b/bin/ak-categories index 32edb4f..e50e1fc 100755 --- a/bin/ak-categories +++ b/bin/ak-categories @@ -97,23 +97,21 @@ EOF fi } _ak_modules_categories_usage(){ - echo "#TODO" - echo "All you need to know is that there are two options available:" - echo "help Prints this help message" - echo "index Prints an indexed table of your news files" - echo "import <file> #TODO" - echo "add <file> Creates a data file from the news file you point to" - echo "create Vim is going to pop up, you will write and save your" - echo " newsletter and it's going to be saved" - exit 0 + echo " -h, --help Prints this help message" + echo " index Prints an indexed table of your news files" + echo " import <file> #TODO" + echo " add <file> Creates a data file from the news file you point to" + echo " create Vim is going to pop up, you will write and save your" + echo " newsletter and it's going to be saved" + exit 0 } _ak_modules_categories_title if [ ! -z $1 ]; then - case $1 in - help) _ak_modules_categories_usage; exit;; - index) _ak_modules_categories_index; exit;; - import) _ak_modules_categories_import $2; exit;; - add) _ak_modules_categories_add $2; exit;; + case $1 in + -h | --help) _ak_modules_categories_usage; exit;; + index) _ak_modules_categories_index; exit;; + import) _ak_modules_categories_import $2; exit;; + add) _ak_modules_categories_add $2; exit;; create) _ak_modules_categories_create; exit;; * ) _ak_modules_categories_usage;; esac |