0
|
1 #!/usr/bin/env python
|
|
2
|
|
3 """
|
|
4 correlate names of talos
|
|
5 """
|
|
6
|
|
7 import api
|
|
8 import sys
|
|
9 import optparse
|
|
10
|
|
11 def main(args=sys.argv[:]):
|
|
12
|
|
13 # parse command line options
|
|
14 usage = '%prog [options]'
|
|
15 class PlainDescriptionFormatter(optparse.IndentedHelpFormatter):
|
|
16 """description formatter for console script entry point"""
|
|
17 def format_description(self, description):
|
|
18 if description:
|
|
19 return description.strip() + '\n'
|
|
20 else:
|
|
21 return ''
|
|
22 parser = optparse.OptionParser(usage=usage, description=__doc__, formatter=PlainDescriptionFormatter())
|
|
23 options, args = parser.parse_args(args)
|
|
24
|
|
25 names = api.TalosNames()
|
|
26
|
|
27 if __name__ == '__main__':
|
|
28 main()
|
|
29
|