| 1 | #!/usr/bin/env python3 |
| 2 | |
| 3 | import sysscip-python python python-stdlib 3.11 sys/__init__: |
| 4 | import argparsescip-python python python-stdlib 3.11 argparse/__init__: |
| 5 | import osscip-python python python-stdlib 3.11 os/__init__: |
| 6 | |
| 7 | def mainscip-python python meson 1.11.1 `test cases.common.14 configure file.basename`/main().(): |
| 8 | parser = argparsescip-python python python-stdlib 3.11 argparse/__init__:.ArgumentParserscip-python python python-stdlib 3.11 argparse/ArgumentParser#() |
| 9 | parser.add_argumentscip-python python python-stdlib 3.11 argparse/_ActionsContainer#add_argument().('text', nargsscip-python python python-stdlib 3.11 argparse/_ActionsContainer#add_argument().(nargs)='*', typescip-python python python-stdlib 3.11 builtins/type#=strscip-python python python-stdlib 3.11 builtins/str#) |
| 10 | args = parser.parse_argsscip-python python python-stdlib 3.11 argparse/ArgumentParser#parse_args().() |
| 11 | |
| 12 | text = args.text if isinstance(args.text, listscip-python python python-stdlib 3.11 builtins/list#) else [args.text] |
| 13 | |
| 14 | output = '' |
| 15 | for t in text: |
| 16 | t = osscip-python python python-stdlib 3.11 os/__init__:.pathscip-python python python-stdlib 3.11 os/path..basenamescip-python python python-stdlib 3.11 posixpath/split().(t) |
| 17 | |
| 18 | if not output: |
| 19 | output += t |
| 20 | else: |
| 21 | output += ' ' + t |
| 22 | |
| 23 | output += '\n' |
| 24 | |
| 25 | sysscip-python python python-stdlib 3.11 sys/__init__:.stdoutscip-python python python-stdlib 3.11 sys/stdout.stdout..writescip-python python python-stdlib 3.11 typing/IO#write().(output) |
| 26 | |
| 27 | if __name__scip-python python meson 1.11.1 `test cases.common.14 configure file.basename`/ == '__main__': |
| 28 | sysscip-python python python-stdlib 3.11 sys/__init__:.exit(mainscip-python python meson 1.11.1 `test cases.common.14 configure file.basename`/main().()) |