From 223808164d799595ab99ffd2f1998214d57aa735 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Thu, 20 Jul 2023 22:09:33 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20(flatpak-sync)=20Add=20usage=20comm?= =?UTF-8?q?and=20printing=20the=20help?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- flatpak-sync/flatpak-sync.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/flatpak-sync/flatpak-sync.sh b/flatpak-sync/flatpak-sync.sh index 372004c..4b06361 100755 --- a/flatpak-sync/flatpak-sync.sh +++ b/flatpak-sync/flatpak-sync.sh @@ -24,10 +24,11 @@ error() { } usage() { - info "Usage: flatpak-sync [sync | add | remove ]" + info "Usage: flatpak-sync [sync | add | remove | usage]" info "sync: Synchronized installed apps with app list." info "add | a | install | i: Add app with app id to the list and sync." info "remove | r | uninstall | u: Remove app with app id from the list and sync." + info "usage: Print this help." info "Without any given argument a sync is executed." } @@ -128,6 +129,9 @@ case "$cmd" in remove "$@" sync ;; + usage ) + usage + ;; * ) sync esac