aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/common/14 configure file/touch.py
blob: b48f48162815aa7b141b375ea6c4711ce12e866b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env python3

import sys
import argparse
from pathlib import Path

def main():
    parser = argparse.ArgumentParser()
    parser.add_argument('files', nargs='*', type=str)
    args = parser.parse_args()

    for filepath in args.files:
        Path(filepath).touch()

if __name__ == '__main__':
    sys.exit(main())