Normally, command line options override environment variables. Add
comment to state that we are doing the reverse on purpose.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@374441
91177308-0d34-0410-b5e6-
96231b3b80d8
action="store_true",
default=False)
- opts = parser.parse_args(sys.argv[1:] +
- shlex.split(os.environ.get("LIT_OPTS", "")))
+ # LIT is special: environment variables override command line arguments.
+ env_args = shlex.split(os.environ.get("LIT_OPTS", ""))
+ args = sys.argv[1:] + env_args
+ opts = parser.parse_args(args)
# Validate command line options
if opts.echoAllCommands: