| Index: shell/subcmds/build_cmd.py
|
| diff --git a/shell/subcmds/build_cmd.py b/shell/subcmds/build_cmd.py
|
| index 9122cc4ce7b3254ce774e2d056fb45fb0813d1da..d9750e2b147e9c17bce9a6c5bb0f018dfcedba79 100644
|
| --- a/shell/subcmds/build_cmd.py
|
| +++ b/shell/subcmds/build_cmd.py
|
| @@ -64,7 +64,7 @@ def _DoSetupBoard(cros_env, build_config, clean_first):
|
| return
|
|
|
| # Put together command.
|
| - cmd_list = [
|
| + arg_list = [
|
| '--board="%s"' % build_config.get('DEFAULT', 'target'),
|
| build_config.get('BUILD', 'setup_board_flags'),
|
| ]
|
| @@ -156,11 +156,9 @@ class BuildCmd(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('--clean', default=False, action='store_true',
|
| - #help='Clean before building.')
|
| + parser.add_option('--clean', default=False, action='store_true',
|
| + help='Clean before building.')
|
| (options, argv) = parser.parse_args(raw_argv[1:])
|
| - options.clean = False
|
|
|
| # Load the build config if needed...
|
| if not loaded_config:
|
|
|