--- a/Beremiz_service.py Mon Aug 20 16:46:50 2018 +0300
+++ b/Beremiz_service.py Mon Aug 20 17:11:20 2018 +0300
@@ -41,7 +41,13 @@
import util.paths as paths
+ from version import app_version + print("Beremiz_service: ", app_version) Usage of Beremiz PLC execution service :\n
%s {[-n servicename] [-i IP] [-p port] [-x enabletaskbar] [-a autostart]|-h|--help} working_dir
@@ -62,7 +68,7 @@
- opts, argv = getopt.getopt(sys.argv[1:], "i:p:n:x:t:a:w:c:e:s:h")
+ opts, argv = getopt.getopt(sys.argv[1:], "i:p:n:x:t:a:w:c:e:s:h", ["help", "version"]) except getopt.GetoptError, err:
# print help information and exit:
print(str(err)) # will print something like "option -a not recognized"
@@ -85,9 +91,12 @@
+ if o == "-h" or o == "--help": if len(a.split(".")) == 4 or a == "localhost":
@@ -136,6 +145,7 @@
__builtin__.__dict__['_'] = lambda x: x
# TODO: add a cmdline parameter if Trying Preloading Xenomai makes problem
--- a/runtime_files.list Mon Aug 20 16:46:50 2018 +0300
+++ b/runtime_files.list Mon Aug 20 17:11:20 2018 +0300
@@ -15,3 +15,4 @@
\ No newline at end of file