OLD | NEW |
1 #!/usr/local/bin/python | 1 #!/usr/bin/env python |
2 # Copyright 2014 The Chromium Authors. All rights reserved. | 2 # Copyright 2014 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 import sys | 6 import sys |
7 import optparse | 7 import optparse |
8 | 8 |
9 import subcommand | 9 import subcommand |
10 | 10 |
11 from git_common import freeze, thaw | 11 from git_common import freeze, thaw |
(...skipping 12 matching lines...) Expand all Loading... |
24 | 24 |
25 def main(): | 25 def main(): |
26 dispatcher = subcommand.CommandDispatcher(__name__) | 26 dispatcher = subcommand.CommandDispatcher(__name__) |
27 ret = dispatcher.execute(optparse.OptionParser(), sys.argv[1:]) | 27 ret = dispatcher.execute(optparse.OptionParser(), sys.argv[1:]) |
28 if ret: | 28 if ret: |
29 print ret | 29 print ret |
30 | 30 |
31 | 31 |
32 if __name__ == '__main__': | 32 if __name__ == '__main__': |
33 main() | 33 main() |
OLD | NEW |