From: Zen Date: Thu, 16 Nov 2023 16:45:02 +0000 (-0600) Subject: lxc-local: Improve usage info X-Git-Tag: v6.0.0~33^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c025072edf5857cf75e025bfd97c5eba2f5ac20;p=thirdparty%2Flxc.git lxc-local: Improve usage info Signed-off-by: Zen --- diff --git a/templates/lxc-local.in b/templates/lxc-local.in index 72ba57ca8..443c9601e 100755 --- a/templates/lxc-local.in +++ b/templates/lxc-local.in @@ -62,12 +62,14 @@ in_userns() { usage() { cat < ]: The container name @@ -79,6 +81,7 @@ EOF return 0 } +# Show usage and exit if invalid arguments are passed if ! options=$(getopt -o hm:f: -l help,metadata:,fstree:,name:,path:,rootfs:,mapped-uid:,mapped-gid: -- "$@"); then usage exit 1