Debian Codegraph @

test cases/common/14 configure file/touch.py

raw
1 #!/usr/bin/env python3
2
3 import sys
4 import argparse
5 from pathlib import Path
6
7 def main():
8 parser = argparse.ArgumentParser()
9 parser.add_argument('files', nargs='*', type=str)
10 args = parser.parse_args()
11
12 for filepath in args.files:
13 Path(filepath).touch()
14
15 if __name__ == '__main__':
16 sys.exit(main())