From 3ca95b33f2dc650b384a96dc1d3aa3d8d18553d1 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Fri, 1 Mar 2024 19:30:33 +0200 Subject: Changes help subcommand to flag style -h, --help --- bin/ak-repositories | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'bin/ak-repositories') diff --git a/bin/ak-repositories b/bin/ak-repositories index 7689e08..1429341 100755 --- a/bin/ak-repositories +++ b/bin/ak-repositories @@ -143,21 +143,21 @@ publish(){ } usage(){ - echo "TODO" + echo "-h, --help" echo "index | add | publish | update" exit } if [ ! -z $1 ] then - case $1 in - help) usage; exit;; - index) index; exit;; - add) add "$2"; exit;; - publish) publish "$2"; exit;; - update) update "$2"; exit;; - *) echo "No command $1";usage; exit;; - esac + case $1 in + -h | --help) usage; exit;; + index) index; exit;; + add) add "$2"; exit;; + publish) publish "$2"; exit;; + update) update "$2"; exit;; + *) echo "No command $1";usage; exit;; + esac else usage fi -- cgit v1.2.3