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



--- Comment #4 from Wyatt <[email protected]> 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@Yue ~ $ find -h
find: unknown predicate `-h'
wyatt@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@Yue ~ $ dmd -O -unitest -inline foo.d
Error: unrecognized switch '-unitest'
wyatt@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: -------

Reply via email to