aboutsummaryrefslogtreecommitdiffstats
path: root/package/sbin
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2022-10-24 17:36:51 +0200
committerThomas Lange <code@nerdmind.de>2022-10-24 17:58:39 +0200
commitff4d5ef9628c3c6f442596ffe5a18ff633a54cb4 (patch)
tree121f6b60c32dd526e0828c9ff237fb4e0f9c867e /package/sbin
parent2a15838618207b515eda1e0857d2c5bca66b54d5 (diff)
downloadpainlessle-ff4d5ef9628c3c6f442596ffe5a18ff633a54cb4.tar.gz
painlessle-ff4d5ef9628c3c6f442596ffe5a18ff633a54cb4.tar.xz
painlessle-ff4d5ef9628c3c6f442596ffe5a18ff633a54cb4.zip
Normalize command-line arguments with GNU getopt
Diffstat (limited to 'package/sbin')
-rwxr-xr-xpackage/sbin/painless-le7
1 files changed, 6 insertions, 1 deletions
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