2 # Copyright (c) 2016 The Chromium Authors. All rights reserved.
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.
17 parser = argparse.ArgumentParser()
18 parser.add_argument('files', nargs='+')
19 parser.add_argument('-f', '--force', action='store_true',
20 help="don't err on missing")
21 parser.add_argument('--stamp', required=True, help='touch this file')
22 args = parser.parse_args()
28 print >>sys.stderr, "'%s' does not exist" % f
31 with open(args.stamp, 'w'):
32 os.utime(args.stamp, None)
37 if __name__ == '__main__':