From ff4d5ef9628c3c6f442596ffe5a18ff633a54cb4 Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Mon, 24 Oct 2022 17:36:51 +0200 Subject: Normalize command-line arguments with GNU getopt --- package/sbin/painless-le | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'package') diff --git a/package/sbin/painless-le b/package/sbin/painless-le index 0d89fc5..4577e19 100755 --- a/package/sbin/painless-le +++ b/package/sbin/painless-le @@ -18,7 +18,12 @@ #%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%# #=============================================================================== -# Parsing command-line arguments with the getopts shell builtin +# Normalize command-line arguments with GNU getopt +#=============================================================================== +set -- $(getopt -uo i:h:K:I:C:F: -- "$@") + +#=============================================================================== +# Parse command-line arguments with the getopts shell built-in #=============================================================================== while getopts :i:h:K:I:C:F: option do -- cgit v1.2.3