projg2 / flaggie

A smart CLI mangler for package.* files
MIT License
48 stars 7 forks source link

flaggie -h does not work #6

Closed mgorny closed 1 year ago

mgorny commented 10 years ago

Originally reported by: jlec (Bitbucket: jlec, GitHub: jlec)


flaggie -h

At argv[1]='-h': h seems to be an incorrect global flag

For common sense of having -h/--help in cli tools this should be handled differently.


mgorny commented 10 years ago

Original comment by Klas Š. (Bitbucket: skrattaren, GitHub: Unknown):


To be precise, jlec is the first person to report that. Personally I am always pissed off when I get an error like that and have to type --help.

mgorny commented 10 years ago

Original comment by Michał Górny (Bitbucket: mgorny, GitHub: mgorny):


I'd rather avoid that. It would make the syntax quite inconsistent, and you seem to be the first person to use -h instead of --help.

mgorny commented 10 years ago

Original comment by jlec (Bitbucket: jlec, GitHub: jlec):


Isn't it possible to add -h for convenience?

mgorny commented 10 years ago

Original comment by Michał Górny (Bitbucket: mgorny, GitHub: mgorny):


As you can see in flaggie --help, there's no -h :).