✨ (flatpak-sync) Add usage command printing the help
This commit is contained in:
parent
3002e19e2c
commit
223808164d
1 changed files with 5 additions and 1 deletions
|
@ -24,10 +24,11 @@ error() {
|
||||||
}
|
}
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
info "Usage: flatpak-sync [sync | add <appId> | remove <appId> ]"
|
info "Usage: flatpak-sync [sync | add <appId> | remove <appId> | usage]"
|
||||||
info "sync: Synchronized installed apps with app list."
|
info "sync: Synchronized installed apps with app list."
|
||||||
info "add | a | install | i: Add app with app id to the list and sync."
|
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 "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."
|
info "Without any given argument a sync is executed."
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -128,6 +129,9 @@ case "$cmd" in
|
||||||
remove "$@"
|
remove "$@"
|
||||||
sync
|
sync
|
||||||
;;
|
;;
|
||||||
|
usage )
|
||||||
|
usage
|
||||||
|
;;
|
||||||
* )
|
* )
|
||||||
sync
|
sync
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Reference in a new issue