Export to GitHub

pyp - issue #8

long options should separate words with dashes, not underscores


Posted on Mar 17, 2012 by Grumpy Kangaroo

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

...

Comment #1

Posted on Mar 20, 2012 by Grumpy Lion

thanks for the comments. I'll look into this for the next release.

t

Comment #2

Posted on May 16, 2012 by Grumpy Lion

sorry, the option parser we are using doesn't support this...I tried though.

Status: Fixed

Labels:
Type-Defect Priority-Medium