Lines Matching refs:arg
354 arg = args[i]
355 if arg == '--crate-name':
358 elif arg == '--crate-type':
364 elif arg == '--test':
366 elif arg == '--target':
369 elif arg == '--cfg':
375 elif arg == '--extern':
380 elif arg == '-C': # codegen options
383 elif arg.startswith('-C'):
386 self.add_codegens_flag(arg[2:])
387 elif arg == '--cap-lints':
390 elif arg == '-L':
400 elif arg == '-l':
408 elif arg == '--out-dir' or arg == '--color': # ignored
410 elif arg.startswith('--error-format=') or arg.startswith('--json='):
411 _ = arg # ignored
412 elif arg.startswith('--emit='):
413 self.emit_list = arg.replace('--emit=', '')
414 elif arg.startswith('--edition='):
415 self.edition = arg.replace('--edition=', '')
416 elif not arg.startswith('-'):
431 self.errors += 'ERROR: unknown ' + arg + '\n'
948 arg = args[i]
949 if arg == '"-c"':
958 elif arg == '"-o"':
961 elif arg == '"-I"':
964 elif arg.startswith('"-D'):
966 elif arg.startswith('"-f'):
968 elif arg.startswith('"-W'):
970 elif not (arg.startswith('"-O') or arg == '"-m64"' or arg == '"-g"' or
971 arg == '"-g3"'):
1636 for arg in config:
1637 args_dict[arg.replace('-', '_')] = config[arg]
1647 for arg in args_dict:
1648 if args_dict[arg] != parser.get_default(
1649 arg) and arg != 'dump_config_and_exit' and arg != 'no_test_mapping':
1650 non_default_args[arg.replace('_', '-')] = args_dict[arg]