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

Unified Diff: shell/subcmds/clean_cmd.py

Issue 6720024: Plumb in subcommand options (Closed) Base URL: ssh://gitrw.chromium.org:9222/chromite.git@master
Patch Set: Moved docstring into docstring :-) Created 9 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 | « shell/subcmds/build_cmd.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: shell/subcmds/clean_cmd.py
diff --git a/shell/subcmds/clean_cmd.py b/shell/subcmds/clean_cmd.py
index 6ceab8859300e9987b886127a9ca11a4e4694cf1..d4f7b18788ccf50a2d9ca468423efc2732b8467a 100644
--- a/shell/subcmds/clean_cmd.py
+++ b/shell/subcmds/clean_cmd.py
@@ -114,11 +114,9 @@ class CleanCmd(subcmd.ChromiteCmd):
usage_str = ('usage: %%prog [chromite_options] %s [options] [target]' %
raw_argv[0])
parser = optparse.OptionParser(usage=usage_str)
- # This option won't work until a later CL plumbs in optparse
- #parser.add_option('-y', '--yes', default=False, action='store_true',
- #help='Answer "YES" to "are you sure?" questions.')
+ parser.add_option('-y', '--yes', default=False, action='store_true',
+ help='Answer "YES" to "are you sure?" questions.')
(options, argv) = parser.parse_args(raw_argv[1:])
- options.yes = False
# Make sure the chroot exists first, before possibly prompting for board...
# ...not really required, but nice for the user...
« no previous file with comments | « shell/subcmds/build_cmd.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698