#1661 fan does not follow the traditional "--option" convention

Xan Sun 2 Oct 2011

Hi,

I don't know if you make a bug or you thought it. When I run fan help for example, I have to do

fan -help

instead of

fan --help

In unix envirornments, options that are a words precede "--" and only chars, "-". For example "fan -h" and "fan --help", but not "fan -help"

Regards, Xan.

DanielFath Sun 2 Oct 2011

Well no one said fan does follow that line of thinking. And sometimes it's better (not allways).

I definetely prefer having to say

fan build.fan doc examples test full

instead of:

fan build.fan -detf //or -fetd or -etfd

But yeah sometimes I wish there is an option to give arguments a shortcut Unix way. PS. To be clear Unix way shortcuts are groupable ( -detf means doc examples test full).

Xan Sun 2 Oct 2011

It was only a suggestion, for completeness. But do what you want (polite)

Thanks, Xan.

tactics Sun 2 Oct 2011

The single dash options follow the tradition of Java.

Although, it might be helpful to special-case --help for new Linux users who type it out of habit.

Login or Signup to reply.