Skip to content
Snippets Groups Projects
Commit 4b39cedf authored by Nikolaos Kakouros's avatar Nikolaos Kakouros
Browse files

Track if parsing the help text for docopt

parent 137755a9
No related branches found
No related tags found
No related merge requests found
...@@ -91,8 +91,10 @@ function parse_args_and_options() { ...@@ -91,8 +91,10 @@ function parse_args_and_options() {
exit exit
fi fi
export __headstart_system_parsing_help=1
help="$("$0" "${_GO_CMD_NAME[@]}" -h 2>&1)" help="$("$0" "${_GO_CMD_NAME[@]}" -h 2>&1)"
help="${help//"$_GO_CMD" "${_GO_CMD_NAME[@]:0:${#_GO_CMD_NAME[@]}-1}"/}" help="${help//"$_GO_CMD" "${_GO_CMD_NAME[@]:0:${#_GO_CMD_NAME[@]}-1}"/}"
unset __headstart_system_parsing_help
local ec=0 local ec=0
eval "$( eval "$(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment