Commit f640540f authored by Michael Büsch's avatar Michael Büsch

Fix usage help texts

Signed-off-by: Michael Büsch's avatarMichael Buesch <m@bues.ch>
parent 66979bfc
......@@ -40,7 +40,7 @@ class TextInterfaceAwlSimClient(AwlSimClient):
def usage():
print("awlsim version %s" % VERSION_STRING)
print("")
print("%s [OPTIONS] <AWL-source or awlsim-project file>" % sys.argv[0])
print("Usage: awlsim-cli [OPTIONS] <AWL-source or awlsim-project file>")
print("")
print("Options:")
print(" -C|--cycle-limit SEC Cycle time limit, in seconds (default 5.0)")
......@@ -244,7 +244,6 @@ def run(inputFile):
opt_profile)
writeStdout(ps)
writeStdout("\n")
s.shutdown()
return 0
def runWithServerBackend(inputFile):
......
......@@ -35,7 +35,7 @@ import getopt
def usage():
print("awlsim-gui version %s" % VERSION_STRING)
print("")
print("%s [OPTIONS] [AWL-source]" % sys.argv[0])
print("Usage: awlsim-gui [OPTIONS] [PROJECT.awlsim]")
print("")
print("Options:")
print(" -h|--help Print this help text")
......
......@@ -34,7 +34,7 @@ from awlsim.coreserver import *
def usage():
print("awlsim-server version %s" % VERSION_STRING)
print("")
print("%s [OPTIONS]" % sys.argv[0])
print("Usage: awlsim-server [OPTIONS]")
print("")
print("Options:")
print(" -l|--listen HOST:PORT Listen on the specified HOST:PORT")
......
......@@ -34,7 +34,7 @@ def usage():
print("awlsim-symtab symbol table parser, version %s" %\
VERSION_STRING)
print("")
print("%s [OPTIONS] <inputfile> [outputfile]" % sys.argv[0])
print("Usage: awlsim-symtab [OPTIONS] <inputfile> [outputfile]")
print("")
print("If inputfile is -, stdin is used.")
print("If outputfile is - or omitted, stdout is used.")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment