From e6deb569fc72e7df951b056cdf7547a5fce88c4a Mon Sep 17 00:00:00 2001 From: vbem Date: Tue, 11 Feb 2025 11:14:41 +0800 Subject: [PATCH] Add support for additional options in getopt for mr.bash --- mr.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mr.bash b/mr.bash index c558bd2..6bfb83b 100755 --- a/mr.bash +++ b/mr.bash @@ -432,7 +432,7 @@ function mr::main { local org='' repo='' user='' labels='' token='' group='' dotenv='' count='' opts='' # parse options into variables - getopt_output="$(getopt -o h -l help,enterprise:,org:,repo:,user:,labels:,token:,group:,dotenv:,count: -n "$FILE_THIS" -- "$@")" + getopt_output="$(getopt -o h -l help,enterprise:,org:,repo:,user:,labels:,token:,group:,dotenv:,count:,opts: -n "$FILE_THIS" -- "$@")" log::failed $? "getopt failed!" || return $? eval set -- "$getopt_output"