diff options
author | 2012-09-02 13:41:10 +0200 | |
---|---|---|
committer | 2012-09-02 13:41:10 +0200 | |
commit | 38b56aafe8323b6270875cf8b1f9435abc0693a1 (patch) | |
tree | 8a411a67ed8fa7802e52a889f5bfb9abfd3603bc | |
parent | Merge branch 'master' of ssh://git.overlays.gentoo.org/proj/auto-numerical-bench (diff) | |
download | auto-numerical-bench-38b56aafe8323b6270875cf8b1f9435abc0693a1.tar.gz auto-numerical-bench-38b56aafe8323b6270875cf8b1f9435abc0693a1.tar.bz2 auto-numerical-bench-38b56aafe8323b6270875cf8b1f9435abc0693a1.zip |
Better help message.
-rw-r--r-- | numbench/main.py | 33 |
1 files changed, 15 insertions, 18 deletions
diff --git a/numbench/main.py b/numbench/main.py index 0e98b41..cfeece5 100644 --- a/numbench/main.py +++ b/numbench/main.py @@ -34,23 +34,20 @@ signal.signal(signal.SIGINT, close) def print_help(): - print "Usage: numbench conffile [options]" - print " numbench [ -h | --help ]" -# print " numbench module [ -h | --help ]" - print - print "Options:" - print " [ -h | --help ] - Displays an help message." - print - print " [ -d | --directory] dir - Stores the data in the given directory." - print " If not given, a directory in ~/.numbench is chosen." - print - print " [ -c | --clean] - Removes the temporary data." - print - print " [ -i | --imageformat] format - Selects the given format for the" - print " resulting images. Available are png, svg, eps, ps, pdf." - print " Default is svg." - print - + print """\ +Usage: numbench conffile [options] + numbench [ -h | --help ] + +Options: + - h, - -help Displays an help message. + - d, - -directory < dir > Stores the data in the given directory. If + not given, a directory in ~/.numbench + is chosen. + - c, - -clean Removes the temporary data at the end. + - i, - -imageformat < format > Selects the given format for the resulting + images. Available are png, svg, eps, ps, + pdf. Default is svg. +""" modnames = modules.getModulesNames() print "Modules:" @@ -90,7 +87,7 @@ cfg.parseArguments() # Start configuration parser if not os.path.exists(cfg.inputfile): - sys.stderr.write("File not found: " + cfg.inputfile) + print "File not found: %s\n\n" % cfg.inputfile print_help() exit(1) parser = Parser(cfg.inputfile) |