From 60fa1370262d2779ee441783d9ac66a2ceaa9ab8 Mon Sep 17 00:00:00 2001 From: Manuel Coenen Date: Mon, 6 Jan 2020 13:26:00 +0100 Subject: [PATCH] Update README --- README.md | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index ca48bae..122ce70 100644 --- a/README.md +++ b/README.md @@ -6,16 +6,21 @@ An example usage would be to execute system shutdown on the SBC when a e.g. `M77 # Usage ``` -$ ./execonmcode --help +$ ./execonmcode -help Usage of ./execonmcode: - -command string + -command value Command to execute - -mCode int - Code that will initiate execution of the command (default 7722) + -debug + Print debug output + -mCode value + Code that will initiate execution of the command -socketPath string - Path to socket (default "/var/run/duet.sock") + Path to socket (default "/var/run/dsf/dcs.sock") ``` +Starting from version 3 it is possible to provide an arbitrary number of `-mCode` + `-command` tuples. This way a +single instance of `execonmcode` can handle multiple commands. Side-effect is that there is no more default for `-mCode`. + ## Parameters `execonmcode` does provide a simple mechanism for parameter substitution. It is possible to pass string parameters to the selected `M-Code` and have them inserted in the `-command`. In the command string they have to be single letters prefixed by