[Issue 10611] Add -h as shorthand for --help

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jul 11 10:30:48 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=10611



--- Comment #4 from Wyatt <wyatt.epp at gmail.com> 2013-07-11 10:30:47 PDT ---
(In reply to comment #3)
> (In reply to comment #2)
> 
> > Honestly?  I had no idea that was the case.
> 
> So now do you want to keep this ER open?

I thought that was pretty clear.  Regardless of what happens when you invoke
dmd without arguments, this is still unexpected, and user expectation is
foundational to usability.  Educating one user doesn't propagate through them
all.  It's more useful to more users to follow sed and awk's example than to do
what find does:

wyatt at Yue ~ $ find -h
find: unknown predicate `-h'
wyatt at Yue ~ $ dmd -h
Error: unrecognized switch '-h'

Another possibility would be to simply print the help when the switch is
unrecognised, but I dislike this option because it removes the inherent "spell
checking" for switches that the current behaviour provides. e.g.

wyatt at Yue ~ $ dmd -O -unitest -inline foo.d
Error: unrecognized switch '-unitest'
wyatt at Yue ~ $ dmd -O2 foo.d
Error: unrecognized switch '-O2'

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list