Граф коммитов

3 Коммитов

Автор SHA1 Сообщение Дата
raphael.kubo.da.costa@intel.com a4d003eb7a version.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

Review URL: https://codereview.chromium.org/336513002

git-svn-id: http://src.chromium.org/svn/trunk/src/build@277450 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-06-16 15:41:40 +00:00
raphael.kubo.da.costa@intel.com 8c481aa2e5 version.py: Pass the right object to Usage in getopt exceptions.
Usage() expects a string, not a full GetoptError object.

TEST=build/util/version.py --file chrome/VERSION --blargh
R=brettw@chromium.org, mark@chromium.org

Review URL: https://codereview.chromium.org/326043004

git-svn-id: http://src.chromium.org/svn/trunk/src/build@276315 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-06-11 09:13:21 +00:00
mad@chromium.org d822f25af7 Moving version script and gypi file to build\util.
BUG=343792

OK, it's been almost a week now, with regular pings to OWNERs, so I guess it's OK to TBR... It's only Gyp/script changes anyway... Feel free to uncheck the CQ box if you disagree...

TBR=beng@chromium.org, darin@chromium.org

Review URL: https://codereview.chromium.org/165893002

git-svn-id: http://src.chromium.org/svn/trunk/src/build@252481 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-21 03:14:02 +00:00