Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#40573 - [pkgbuild-introspection] Suggestion: add more variants of "-h" (or a man page)
Attached to Project:
Community Packages
Opened by Steven Honeyman (stevenhoneyman) - Tuesday, 27 May 2014, 18:53 GMT
Last edited by Dave Reisner (falconindy) - Wednesday, 28 May 2014, 18:58 GMT
Opened by Steven Honeyman (stevenhoneyman) - Tuesday, 27 May 2014, 18:53 GMT
Last edited by Dave Reisner (falconindy) - Wednesday, 28 May 2014, 18:58 GMT
|
DetailsDescription:
I just received the notification regarding AUR3 and the need for packaging using this tool. I had to skim through the source to find out what the command for help was! "--help" usually works on most programs, or the man page would tell you more about it. My usual attempts would be: --help, -help, (no params), -?, --? I guess also that the first thing should be output the help if ./PKGBUILD doesn't exist (instead of an error) Steps to reproduce: $ mkaurball --help ERROR: invalid option -- '-' $ mkaurball /usr/bin/mkaurball: line 230: ./PKGBUILD: No such file or directory |
This task depends upon
Closed by Dave Reisner (falconindy)
Wednesday, 28 May 2014, 18:58 GMT
Reason for closing: Upstream
Additional comments about closing: https://github.com/falconindy/pkgbuild-i ntrospection/commit/89335c40
Wednesday, 28 May 2014, 18:58 GMT
Reason for closing: Upstream
Additional comments about closing: https://github.com/falconindy/pkgbuild-i ntrospection/commit/89335c40
Want some suggestions on how you could implement this improvement without having to change much?
1) grep for "help" on the input ==> display help
2) if the "option" is '-' ==> display help
3) if ./PKGBUILD doesnt exist ==> display help
any/all of those would solve most efforts to get information out of your script, and are all 1-liners.
Extrapolating out that logic, everything that isn't a valid option or expected usage should result in the help being displayed. Not a pattern I'm fond of.
$ ls -asdfghjkl
ls: invalid option -- 'j'
Try 'ls --help' for more information.
$