eliben / pss

pss is a power-tool for searching inside source code files.
Other
327 stars 46 forks source link

Running with no args shouldn't print help #8

Closed tlynn closed 11 years ago

tlynn commented 11 years ago

Command-line tools should generally be safe to run with no arguments. Spewing help all over your terminal (and thus hiding your history/interrupting your flow) is quite unsafe. Please change it to just tell the user to use -h for usage in that case.

benhoyt commented 11 years ago

Why? FWIW, I really like that little feature. Unless a program is going to do something meaningful without command line arguments (which pss can't really), it should print help. I believe this is fairly common behaviour for interactive programs like this (ack does it too).