-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Terse error message | panic: no fields found in usage (perhaps a spacing error) #47
Comments
Hi @pihentagy I think it's a problem with the version of If I save your example in
But after installing gawk:
The dash from the comment are removed. I must issue this bug. You can try this dirty patch. I must also test mac version. diff --git a/docopts.sh b/docopts.sh
index 3b7bf55..1208489 100644
--- a/docopts.sh
+++ b/docopts.sh
@@ -71,7 +71,7 @@ docopt_get_help_string() {
print usage[i]
}
}
- ' < "$myfname"
+ ' < "$myfname" | sed -e 's/^#//' -e 's/^# //'
}
# Doc: |
Sylvain303
added a commit
that referenced
this issue
Dec 6, 2020
Should be fixed by c211513 |
endorama
added a commit
to endorama/nixpkgs
that referenced
this issue
Nov 3, 2021
Version 0.6.3 was affected by a bug (docopt/docopts#47) that has been resolved in 0.6.4. Signed-off-by: Edoardo Tenani <edoardo.tenani@pm.me>
12 tasks
12 tasks
thiagokokada
pushed a commit
to NixOS/nixpkgs
that referenced
this issue
Nov 16, 2021
Version 0.6.3 was affected by a bug (docopt/docopts#47) that has been resolved in 0.6.4. Signed-off-by: Edoardo Tenani <edoardo.tenani@pm.me>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The error message given is too terse for me.
Could you elaborate when can I get this error message?
Note, that this works on another machine (with other version of bash)
Relevant script part:
The text was updated successfully, but these errors were encountered: