esainane / pyp

Automatically exported from code.google.com/p/pyp
0 stars 0 forks source link

long options should separate words with dashes, not underscores #8

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Interesting project which I'm eager to try out.  Looking at the docs I see 
several examples of long-form command-line options which have words separated 
by underscores, such as --macro_save.

This is a bit jarring because all (or almost all) of the tools I have used 
separate such words with dashes instead.  Since dashes are common on the unix 
command-line they are committed to muscle memory, not to mention underscore 
requires the shift key (at least on US keyboards).

It can only help the tool to follow this higher efficiency convention.  For 
example the ls --help command:

  -a, --all 
  -A, --almost-all 
      --block-size=SIZE
  -B, --ignore-backups

...

Original issue reported on code.google.com by geekad...@mgmiller.net on 17 Mar 2012 at 9:36

GoogleCodeExporter commented 8 years ago
thanks for the comments. I'll look into this for the next release.

t

Original comment by tobyro...@gmail.com on 20 Mar 2012 at 3:43

GoogleCodeExporter commented 8 years ago
sorry, the option parser we are using doesn't support this...I tried though.  

Original comment by tobyro...@gmail.com on 16 May 2012 at 9:38