update flags (#3)
This commit is contained in:
@@ -24,15 +24,17 @@ while [[ $# -gt 0 ]]; do
|
|||||||
uuid_cmdline="$2"
|
uuid_cmdline="$2"
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
# TODO: add more, make a function
|
# TODO: make a function
|
||||||
-h|--help)
|
-h|--help)
|
||||||
printf "Usage:"
|
printf "Usage:"
|
||||||
printf " snap-sync -d 'Snapshot description' -u device-UUID"
|
printf " snap-sync -d 'Snapshot description' -u device-UUID -c config"
|
||||||
shift
|
shift
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
printf "Error: unknown option."
|
printf "Error: unknown option."
|
||||||
|
printf "Usage:"
|
||||||
|
printf " snap-sync -d 'Snapshot description' -u device-UUID -c config"
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
Reference in New Issue
Block a user