2 # Copyright 2016 The Chromium Authors
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
8 This module works much like the rm posix command.
18 parser = argparse.ArgumentParser()
19 parser.add_argument('files', nargs='+')
20 parser.add_argument('-f', '--force', action='store_true',
21 help="don't err on missing")
22 parser.add_argument('--stamp', required=True, help='touch this file')
23 args = parser.parse_args()
29 print("'%s' does not exist" % f, file=sys.stderr)
32 with open(args.stamp, 'w'):
33 os.utime(args.stamp, None)
38 if __name__ == '__main__':