From c7c834e9944c94de3d07f21ce2d2d3f18a03b3b2 Mon Sep 17 00:00:00 2001 From: Nathanael Sensfelder Date: Wed, 8 Jan 2020 20:27:17 +0100 Subject: Implements remote "-t" and "-q" commands. --- src/config/parameters/parameters.c | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'src/config/parameters/parameters.c') diff --git a/src/config/parameters/parameters.c b/src/config/parameters/parameters.c index 0e98016..84b348c 100644 --- a/src/config/parameters/parameters.c +++ b/src/config/parameters/parameters.c @@ -337,8 +337,8 @@ int relabsd_parameters_argument_count_for { if ( - RELABSD_STRING_EQUALS("-n", option) - || RELABSD_STRING_EQUALS("--name", option) + RELABSD_STRING_EQUALS("-q", option) + || RELABSD_STRING_EQUALS("--quit", option) ) { *result = 0; @@ -373,7 +373,7 @@ int relabsd_parameters_argument_count_for || RELABSD_STRING_EQUALS("--mod-axis", option) ) { - *result = 7; + *result = 3; } else if ( @@ -411,7 +411,8 @@ void relabsd_parameters_print_usage (const char exec [const restrict static 1]) "\t%s [-? | --compatible] [+]\n" "\t\tDevice & configuration compatibility test.\n\n" - "\t%s [-c | --client] [(|)+]" + "\t%s [-c | --client] " + "[(|)+]" "\n" "\t\tSends the commands to a given server instance.\n\n" @@ -423,21 +424,24 @@ void relabsd_parameters_print_usage (const char exec [const restrict static 1]) " [(|)+]:\n" "\t\tCreates an unnamed server instance.\n\n" - ":\n" + ":\n" "\t[-n | --name] :\n" "\t\tNames the virtual device.\n\n" "\t[-t | --timeout] :\n" "\t\tSets a zeroing timeout (0 to disable).\n\n" + "\t[-m | --mod-axis] [min|max|fuzz|flat|resolution|enable]" + " [+|-|=]:\n" + "\t\tModifies an axis.\n\n" + + ":\n" + "\t\n\n" + "\t[-a | --axis] " ":\n" "\t\t(Re)defines an axis.\n\n" - "\t[-m | --mod-axis] [min|max|fuzz|flat|resolution]" - " [+|-|=]:\n" - "\t\tModifies an axis.\n\n" - "\t[-f | --config] " "\t\tUse the options defined in .\n\n" -- cgit v1.2.3-70-g09d2