facebookarchive / xcbuild

Xcode-compatible build tool.
Other
2k stars 190 forks source link

print "usage" for unknown arguments #274

Closed umlaeute closed 6 years ago

umlaeute commented 6 years ago

after installing xcbuild (via homebrew)I was kind of lost: whatever I tried would result in an unknown argument error:

$ xcbuild -h
error: unknown argument -h
$ xcbuild --help
error: unknown argument --help
$ man xcbuild
No manual entry for xbuild
$

only after searching the sources(sic!), i discovered that in order to get help i must specify -help (with a single dash). Now I understand that single-dash arguments are somewhat standard with macOS. Unfortunately I'm coming from a GNU world (with single-dash short options and double-dash long options).

I think it would be very nice if:

sas commented 6 years ago

Agreed. I don't have time to deal with this right now, but if somebody ends up submitting a PR I'll gladly accept it.