OLD | NEW |
| (Empty) |
1 #!/usr/bin/env python | |
2 # Copyright 2015 The Chromium Authors. All rights reserved. | |
3 # Use of this source code is governed by a BSD-style license that can be | |
4 # found in the LICENSE file. | |
5 | |
6 """A simple client test module. | |
7 | |
8 This module is invoked by the host by calling the client controller's | |
9 Subprocess RPC method. The name is passed in as a required argument on the | |
10 command line. | |
11 """ | |
12 | |
13 import argparse | |
14 import os | |
15 import sys | |
16 | |
17 | |
18 def main(): | |
19 parser = argparse.ArgumentParser() | |
20 parser.add_argument('name') | |
21 args = parser.parse_args() | |
22 print 'Hello world from', args.name | |
23 return 0 | |
24 | |
25 | |
26 if __name__ == '__main__': | |
27 sys.exit(main()) | |
OLD | NEW |