c-martinez / shellther

shell link to etherpad
8 stars 5 forks source link

use argument parsing library #2

Closed mkuzak closed 8 years ago

mkuzak commented 8 years ago

I think it's better to use python argument parsing library like argparse instead of doing it by hand. That way you will also avoid printing help and usage information by hand and reduce the duplication of the code.

c-martinez commented 8 years ago

It's using docopt, not parsing by hand.

mkuzak commented 8 years ago

so you generate args from docstring :) ok, now I get it

c-martinez commented 8 years ago

Yup -- personal preference, but I think docopt is nicer than argparse. ;-)