Add switch to skip operations require networking.

I'm on a slow network :-(
This commit is contained in:
Cheng Zhao 2013-07-01 16:12:31 +08:00
parent 74fe79ce62
commit 5ccff31f52

View file

@ -21,20 +21,26 @@ def main():
args = parse_args()
update_submodules()
bootstrap_brightray(args.url)
if not args.skip_network:
update_node_modules()
if sys.platform == 'cygwin':
update_win32_python()
update_atom_shell()
def parse_args():
parser = argparse.ArgumentParser(description='Bootstrap this project')
parser.add_argument('--url',
parser.add_argument('-u', '--url',
help='The base URL from which to download '
'libchromiumcontent (i.e., the URL you passed to '
'libchromiumcontent\'s script/upload script',
default=BASE_URL,
required=False)
parser.add_argument('-s', '--skip-network',
help='Skip operations require networking',
action='store_true')
return parser.parse_args()