| OLD | NEW | 
|   1 #!/usr/bin/env python |   1 #!/usr/bin/env python | 
|   2 # Copyright (c) 2014 The Chromium Authors. All rights reserved. |   2 # Copyright (c) 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  |   6  | 
|   7 """Run a command on all buildslaves on this machine.""" |   7 """Run a command on all buildslaves on this machine.""" | 
|   8  |   8  | 
|   9  |   9  | 
|  10 import run_cmd |  10 import run_cmd | 
|  11  |  11  | 
|  12  |  12  | 
|  13 if '__main__' == __name__: |  13 if '__main__' == __name__: | 
|  14   options = run_cmd.parse_args() |  14   options = run_cmd.parse_args(positional_args=['host']) | 
|  15   results = run_cmd.run_on_local_slaves(options.cmd) |  15   results = run_cmd.run_on_remote_slaves(options.host, options.cmd) | 
|  16   results.print_results(pretty=options.pretty) |  16   results.print_results(pretty=options.pretty) | 
| OLD | NEW |