Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1353)

Unified Diff: recipes.py

Issue 2845923002: [recipes.py] use argparse to set command automatically. (Closed)
Patch Set: rebase Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « recipe_engine/test.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: recipes.py
diff --git a/recipes.py b/recipes.py
index 83fdd2ed60848f77c61809144aa59e7a195ca26d..f5ba3eccb8dc3cc0dd32efe6b6bd57ddcac7dabb 100755
--- a/recipes.py
+++ b/recipes.py
@@ -87,7 +87,7 @@ def main():
common_postprocess_func = common_args.add_common_args(parser)
- subp = parser.add_subparsers()
+ subp = parser.add_subparsers(dest='command')
for module in _SUBCOMMANDS:
module.add_subparser(subp)
« no previous file with comments | « recipe_engine/test.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698