Subversion URL: http://proj.badc.rl.ac.uk/svn/exarch/CMIP6dreqbuild/trunk/src/framework/dreqPy/dreqCmdl.py@579
Revision 579,
871 bytes
checked in by mjuckes, 5 years ago
(diff) |
fixed bug in sorting of entries in main index
|
Line | |
---|
1 | """ |
---|
2 | Entry point for command line usage -- see ccinit for usage information. |
---|
3 | """ |
---|
4 | |
---|
5 | import scope, sys |
---|
6 | |
---|
7 | def main_entry(): |
---|
8 | """ |
---|
9 | Wrapper for use with setuptools. |
---|
10 | """ |
---|
11 | print '**********',sys.argv[0] |
---|
12 | if len(sys.argv) == 1: |
---|
13 | # Show command-line info and report that you must provide arguments |
---|
14 | print( scope.dreqUI.__doc__ ) |
---|
15 | print( "\nERROR: Please provide command-line arguments." ) |
---|
16 | return |
---|
17 | |
---|
18 | if sys.argv[1] == '-v': |
---|
19 | from packageConfig import __version__, __versionComment__ |
---|
20 | print( 'dreqPy version %s [%s]' % (__version__,__versionComment__) ) |
---|
21 | elif sys.argv[1] == '--unitTest': |
---|
22 | print( "Starting test suite 1" ) |
---|
23 | import simpleCheck |
---|
24 | print( "Starting test suite 2" ) |
---|
25 | import example |
---|
26 | print( "Tests completed" ) |
---|
27 | else: |
---|
28 | x = scope.dreqUI(sys.argv[1:]) |
---|
29 | x.run() |
---|
30 | |
---|
31 | if __name__ == '__main__': |
---|
32 | main_entry() |
---|
Note: See
TracBrowser
for help on using the repository browser.