OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2013 The LUCI Authors. All rights reserved. | 2 # Copyright 2013 The LUCI Authors. All rights reserved. |
3 # Use of this source code is governed by the Apache v2.0 license that can be | 3 # Use of this source code is governed under the Apache License, Version 2.0 |
4 # found in the LICENSE file. | 4 # that can be found in the LICENSE file. |
5 | 5 |
6 """Client tool to perform various authentication related tasks.""" | 6 """Client tool to perform various authentication related tasks.""" |
7 | 7 |
8 __version__ = '0.4' | 8 __version__ = '0.4' |
9 | 9 |
10 import logging | 10 import logging |
11 import optparse | 11 import optparse |
12 import sys | 12 import sys |
13 | 13 |
14 from third_party import colorama | 14 from third_party import colorama |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 def main(args): | 172 def main(args): |
173 dispatcher = subcommand.CommandDispatcher(__name__) | 173 dispatcher = subcommand.CommandDispatcher(__name__) |
174 return dispatcher.execute(OptionParserAuth(version=__version__), args) | 174 return dispatcher.execute(OptionParserAuth(version=__version__), args) |
175 | 175 |
176 | 176 |
177 if __name__ == '__main__': | 177 if __name__ == '__main__': |
178 fix_encoding.fix_encoding() | 178 fix_encoding.fix_encoding() |
179 tools.disable_buffering() | 179 tools.disable_buffering() |
180 colorama.init() | 180 colorama.init() |
181 sys.exit(main(sys.argv[1:])) | 181 sys.exit(main(sys.argv[1:])) |
OLD | NEW |