omegakw / reaver-wps

Automatically exported from code.google.com/p/reaver-wps
0 stars 0 forks source link

--help goes to stderr #405

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
This could be seen as a non issue, but in my mind when a user types --help the 
output should go to stdout.

On some systems stderr is setup to be redirected for logging, etc...

If a user is requesting help, then the output is not an error message. It's 
actually exactly what the user wanted.

Ex:

reaver --help | less

Will not work. The pipe takes input from stdout.

reaver --help > man_reaver

Will produce an empty file.

reaver --help 2> man_reaver

Writes reaver's help to the file, but, again IMO, --help shouldn't really be an 
error.

Original issue reported on code.google.com by Hall...@gmail.com on 19 Sep 2012 at 1:03