Descriptionversion.py: Use argparse instead of getopt.
Rewrite the argument handling code using argparse. It allows us to get
rid of a lot of manual parsing as well as the whole help message.
In addition, it fixes a few other bugs present in the previous
implementation:
- Passing 3 or more arguments that are not values for parameters would
cause an infinite loop.
- The "--template" option was not allowed (only its short form "-t"
was).
R=mark@chromium.org, brettw@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=277450
Patch Set 1 #
Total comments: 4
Patch Set 2 : Patch v2 #
Total comments: 2
Messages
Total messages: 9 (0 generated)
|