in assets/scripts/SilentInstaller.py [0:0]
def get_options():
''' Parses the command line arguments and configuration files specified by the user '''
if any([arg.startswith('--bootstrapFile') for arg in sys.argv]):
# read the options from the bootstrap file
cmd_parser = make_bootstrap_cmd_line_parser()
bootstrap_file = cmd_parser.parse_args().bootstrapFile
bootstrap_options = read_json_file(bootstrap_file)
options = Options(bootstrap_options)
else:
# read the options from the command line
cmd_parser = make_cmd_line_parser()
cmd_line_args = cmd_parser.parse_args()
options = Options(vars(cmd_line_args))
return options