reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | #!/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) |