OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 # CMD code copied from git_cl.py in depot_tools. | 6 # CMD code copied from git_cl.py in depot_tools. |
7 | 7 |
8 import config | 8 import config |
9 import cStringIO | 9 import cStringIO |
10 import download | 10 import download |
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
418 GenUsage(parser, 'help') | 418 GenUsage(parser, 'help') |
419 return CMDhelp(parser, argv) | 419 return CMDhelp(parser, argv) |
420 | 420 |
421 | 421 |
422 if __name__ == '__main__': | 422 if __name__ == '__main__': |
423 try: | 423 try: |
424 sys.exit(main(sys.argv[1:])) | 424 sys.exit(main(sys.argv[1:])) |
425 except Error as e: | 425 except Error as e: |
426 logging.error(str(e)) | 426 logging.error(str(e)) |
427 sys.exit(1) | 427 sys.exit(1) |
| 428 except KeyboardInterrupt: |
| 429 sys.stderr.write('naclsdk: interrupted\n') |
| 430 sys.exit(1) |
OLD | NEW |