OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # | 2 # |
3 # Copyright 2015 The Chromium Authors. All rights reserved. | 3 # Copyright 2015 The Chromium Authors. All rights reserved. |
4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
6 | 6 |
7 """Add an entry into the manifest file of a jar file.""" | 7 """Add an entry into the manifest file of a jar file.""" |
8 | 8 |
9 import optparse | 9 import optparse |
10 import os | 10 import os |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 parser.add_option('--output', help='Name of the output jar.') | 45 parser.add_option('--output', help='Name of the output jar.') |
46 parser.add_option('--key', help='Name of the key to add to the manifest.') | 46 parser.add_option('--key', help='Name of the key to add to the manifest.') |
47 parser.add_option('--value', help='Name of the value to add to the manifest.') | 47 parser.add_option('--value', help='Name of the value to add to the manifest.') |
48 | 48 |
49 options, _ = parser.parse_args() | 49 options, _ = parser.parse_args() |
50 AddKey(options.input, options.output, options.key, options.value) | 50 AddKey(options.input, options.output, options.key, options.value) |
51 | 51 |
52 | 52 |
53 if __name__ == '__main__': | 53 if __name__ == '__main__': |
54 sys.exit(main()) | 54 sys.exit(main()) |
OLD | NEW |