
This is the first commit in a series that will reformat all the python files in the LLVM repository. Reformatting is done with `black`. See more information here: https://discourse.llvm.org/t/rfc-document-and-standardize-python-code-style Reviewed By: jhenderson, JDevlieghere, MatzeB Differential Revision: https://reviews.llvm.org/D150545
16 lines
272 B
Python
16 lines
272 B
Python
#!/usr/bin/env python
|
|
|
|
import argparse
|
|
import platform
|
|
|
|
parser = argparse.ArgumentParser()
|
|
parser.add_argument("--my_arg", "-a")
|
|
|
|
args = parser.parse_args()
|
|
|
|
answer = (
|
|
platform.system() == "Windows" and args.my_arg == "/dev/null" and "ERROR"
|
|
) or "OK"
|
|
|
|
print(answer)
|