Closed mkuzak closed 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.
argparse
It's using docopt, not parsing by hand.
so you generate args from docstring :) ok, now I get it
Yup -- personal preference, but I think docopt is nicer than argparse. ;-)
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.