diff --git a/clients/shmem/villas-shmem.cpp b/clients/shmem/villas-shmem.cpp index 777a26216..a5dcf1717 100644 --- a/clients/shmem/villas-shmem.cpp +++ b/clients/shmem/villas-shmem.cpp @@ -39,10 +39,10 @@ struct shmem_int shm; void usage() { - std::cout << "Usage: villas-test-shmem WNAME VECTORIZE" << std::endl; - std::cout << " WNAME name of the shared memory object for the output queue" << std::endl; - std::cout << " RNAME name of the shared memory object for the input queue" << std::endl; - std::cout << " VECTORIZE maximum number of samples to read/write at a time" << std::endl; + std::cout << "Usage: villas-test-shmem WNAME VECTORIZE" << std::endl + << " WNAME name of the shared memory object for the output queue" << std::endl + << " RNAME name of the shared memory object for the input queue" << std::endl + << " VECTORIZE maximum number of samples to read/write at a time" << std::endl; } void quit(int sig) diff --git a/src/villas-convert.cpp b/src/villas-convert.cpp index f6270ad90..f30668e49 100644 --- a/src/villas-convert.cpp +++ b/src/villas-convert.cpp @@ -33,13 +33,13 @@ static void usage() { - std::cout << "Usage: villas-convert [OPTIONS]" << std::endl; - std::cout << " OPTIONS are:" << std::endl; - std::cout << " -i FMT set the input format" << std::endl; - std::cout << " -o FMT set the output format" << std::endl; - std::cout << " -d LVL set debug log level to LVL" << std::endl; - std::cout << " -h show this usage information" << std::endl; - std::cout << " -V show the version of the tool" << std::endl << std::endl; + std::cout << "Usage: villas-convert [OPTIONS]" << std::endl + << " OPTIONS are:" << std::endl + << " -i FMT set the input format" << std::endl + << " -o FMT set the output format" << std::endl + << " -d LVL set debug log level to LVL" << std::endl + << " -h show this usage information" << std::endl + << " -V show the version of the tool" << std::endl << std::endl; print_copyright(); } diff --git a/src/villas-hook.cpp b/src/villas-hook.cpp index aa82b0eb0..b767f0301 100644 --- a/src/villas-hook.cpp +++ b/src/villas-hook.cpp @@ -83,15 +83,15 @@ static void quit(int signal, siginfo_t *sinfo, void *ctx) static void usage() { - std::cout << "Usage: villas-hook [OPTIONS] NAME [[PARAM1] [PARAM2] ...]" << std::endl; - std::cout << " NAME the name of the hook function" << std::endl; - std::cout << " PARAM* a string of configuration settings for the hook" << std::endl; - std::cout << " OPTIONS is one or more of the following options:" << std::endl; - std::cout << " -f FMT the data format" << std::endl; - std::cout << " -d LVL set debug level to LVL" << std::endl; - std::cout << " -v CNT process CNT smps at once" << std::endl; - std::cout << " -h show this help" << std::endl; - std::cout << " -V show the version of the tool" << std::endl << std::endl; + std::cout << "Usage: villas-hook [OPTIONS] NAME [[PARAM1] [PARAM2] ...]" << std::endl + << " NAME the name of the hook function" << std::endl + << " PARAM* a string of configuration settings for the hook" << std::endl + << " OPTIONS is one or more of the following options:" << std::endl + << " -f FMT the data format" << std::endl + << " -d LVL set debug level to LVL" << std::endl + << " -v CNT process CNT smps at once" << std::endl + << " -h show this help" << std::endl + << " -V show the version of the tool" << std::endl << std::endl; std::cout << "Supported hooks:" << std::endl; plugin_dump(PLUGIN_TYPE_HOOK); diff --git a/src/villas-node.cpp b/src/villas-node.cpp index 51d647c88..f0009acec 100644 --- a/src/villas-node.cpp +++ b/src/villas-node.cpp @@ -62,20 +62,20 @@ static void quit(int signal, siginfo_t *sinfo, void *ctx) static void usage() { - std::cout << "Usage: villas-node [OPTIONS] [CONFIG]" << std::endl; - std::cout << " OPTIONS is one or more of the following options:" << std::endl; - std::cout << " -h show this usage information" << std::endl; - std::cout << " -V show the version of the tool" << std::endl << std::endl; - std::cout << " CONFIG is the path to an optional configuration file" << std::endl; - std::cout << " if omitted, VILLASnode will start without a configuration" << std::endl; - std::cout << " and wait for provisioning over the web interface." << std::endl << std::endl; + std::cout << "Usage: villas-node [OPTIONS] [CONFIG]" << std::endl + << " OPTIONS is one or more of the following options:" << std::endl + << " -h show this usage information" << std::endl + << " -V show the version of the tool" << std::endl << std::endl + << " CONFIG is the path to an optional configuration file" << std::endl + << " if omitted, VILLASnode will start without a configuration" << std::endl + << " and wait for provisioning over the web interface." << std::endl << std::endl #ifdef ENABLE_OPAL_ASYNC - std::cout << "Usage: villas-node OPAL_ASYNC_SHMEM_NAME OPAL_ASYNC_SHMEM_SIZE OPAL_PRINT_SHMEM_NAME" << std::endl; - std::cout << " This type of invocation is used by OPAL-RT Asynchronous processes." << std::endl; - std::cout << " See in the RT-LAB User Guide for more information." << std::endl << std::endl; + << "Usage: villas-node OPAL_ASYNC_SHMEM_NAME OPAL_ASYNC_SHMEM_SIZE OPAL_PRINT_SHMEM_NAME" << std::endl + << " This type of invocation is used by OPAL-RT Asynchronous processes." << std::endl + << " See in the RT-LAB User Guide for more information." << std::endl << std::endl #endif /* ENABLE_OPAL_ASYNC */ - std::cout << "Supported node-types:" << std::endl; + << "Supported node-types:" << std::endl; plugin_dump(PLUGIN_TYPE_NODE); std::cout << std::endl; diff --git a/src/villas-pipe.cpp b/src/villas-pipe.cpp index f3a1fd00a..2179b84ad 100644 --- a/src/villas-pipe.cpp +++ b/src/villas-pipe.cpp @@ -106,20 +106,20 @@ static void quit(int signal, siginfo_t *sinfo, void *ctx) static void usage() { - std::cout << "Usage: villas-pipe [OPTIONS] CONFIG NODE" << std::endl; - std::cout << " CONFIG path to a configuration file" << std::endl; - std::cout << " NODE the name of the node to which samples are sent and received from" << std::endl; - std::cout << " OPTIONS are:" << std::endl; - std::cout << " -f FMT set the format" << std::endl; - std::cout << " -o OPTION=VALUE overwrite options in config file" << std::endl; - std::cout << " -x swap read / write endpoints" << std::endl; - std::cout << " -s only read data from stdin and send it to node" << std::endl; - std::cout << " -r only read data from node and write it to stdout" << std::endl; - std::cout << " -t NUM terminate after NUM seconds" << std::endl; - std::cout << " -L NUM terminate after NUM samples sent" << std::endl; - std::cout << " -l NUM terminate after NUM samples received" << std::endl; - std::cout << " -h show this usage information" << std::endl; - std::cout << " -V show the version of the tool" << std::endl << std::endl; + std::cout << "Usage: villas-pipe [OPTIONS] CONFIG NODE" << std::endl + << " CONFIG path to a configuration file" << std::endl + << " NODE the name of the node to which samples are sent and received from" << std::endl + << " OPTIONS are:" << std::endl + << " -f FMT set the format" << std::endl + << " -o OPTION=VALUE overwrite options in config file" << std::endl + << " -x swap read / write endpoints" << std::endl + << " -s only read data from stdin and send it to node" << std::endl + << " -r only read data from node and write it to stdout" << std::endl + << " -t NUM terminate after NUM seconds" << std::endl + << " -L NUM terminate after NUM samples sent" << std::endl + << " -l NUM terminate after NUM samples received" << std::endl + << " -h show this usage information" << std::endl + << " -V show the version of the tool" << std::endl << std::endl; print_copyright(); } diff --git a/src/villas-signal.cpp b/src/villas-signal.cpp index 08613b06f..894362a21 100644 --- a/src/villas-signal.cpp +++ b/src/villas-signal.cpp @@ -126,28 +126,27 @@ check: if (optarg == endptr) void usage() { - std::cout << "Usage: villas-signal [OPTIONS] SIGNAL" << std::endl; - std::cout << " SIGNAL is on of the following signal types:" << std::endl; - std::cout << " mixed" << std::endl; - std::cout << " random" << std::endl; - std::cout << " sine" << std::endl; - std::cout << " triangle" << std::endl; - std::cout << " square" << std::endl; - std::cout << " ramp" << std::endl; - std::cout << " constants" << std::endl; - std::cout << " counter" << std::endl; - std::cout << "" << std::endl; - std::cout << " OPTIONS is one or more of the following options:" << std::endl; - std::cout << " -d LVL set debug level" << std::endl; - std::cout << " -f FMT set the format" << std::endl; - std::cout << " -v NUM specifies how many values a message should contain" << std::endl; - std::cout << " -r HZ how many messages per second" << std::endl; - std::cout << " -n non real-time mode. do not throttle output." << std::endl; - std::cout << " -F HZ the frequency of the signal" << std::endl; - std::cout << " -a FLT the amplitude" << std::endl; - std::cout << " -D FLT the standard deviation for 'random' signals" << std::endl; - std::cout << " -o OFF the DC bias" << std::endl; - std::cout << " -l NUM only send LIMIT messages and stop" << std::endl << std::endl; + std::cout << "Usage: villas-signal [OPTIONS] SIGNAL" << std::endl + << " SIGNAL is on of the following signal types:" << std::endl + << " mixed" << std::endl + << " random" << std::endl + << " sine" << std::endl + << " triangle" << std::endl + << " square" << std::endl + << " ramp" << std::endl + << " constants" << std::endl + << " counter" << std::endl << std::endl + << " OPTIONS is one or more of the following options:" << std::endl + << " -d LVL set debug level" << std::endl + << " -f FMT set the format" << std::endl + << " -v NUM specifies how many values a message should contain" << std::endl + << " -r HZ how many messages per second" << std::endl + << " -n non real-time mode. do not throttle output." << std::endl + << " -F HZ the frequency of the signal" << std::endl + << " -a FLT the amplitude" << std::endl + << " -D FLT the standard deviation for 'random' signals" << std::endl + << " -o OFF the DC bias" << std::endl + << " -l NUM only send LIMIT messages and stop" << std::endl << std::endl; print_copyright(); } diff --git a/src/villas-test-cmp.cpp b/src/villas-test-cmp.cpp index 5e4dad748..eb6530b6b 100644 --- a/src/villas-test-cmp.cpp +++ b/src/villas-test-cmp.cpp @@ -45,24 +45,24 @@ struct side { void usage() { - std::cout << "Usage: villas-test-cmp [OPTIONS] FILE1 FILE2 ... FILEn" << std::endl; - std::cout << " FILE a list of files to compare" << std::endl; - std::cout << " OPTIONS is one or more of the following options:" << std::endl; - std::cout << " -d LVL adjust the debug level" << std::endl; - std::cout << " -e EPS set epsilon for floating point comparisons to EPS" << std::endl; - std::cout << " -v ignore data values" << std::endl; - std::cout << " -t ignore timestamp" << std::endl; - std::cout << " -s ignore sequence no" << std::endl; - std::cout << " -f FMT file format for all files" << std::endl; - std::cout << " -h show this usage information" << std::endl; - std::cout << " -V show the version of the tool" << std::endl << std::endl; - std::cout << "Return codes:" << std::endl; - std::cout << " 0 files are equal" << std::endl; - std::cout << " 1 file length not equal" << std::endl; - std::cout << " 2 sequence no not equal" << std::endl; - std::cout << " 3 timestamp not equal" << std::endl; - std::cout << " 4 number of values is not equal" << std::endl; - std::cout << " 5 data is not equal" << std::endl << std::endl; + std::cout << "Usage: villas-test-cmp [OPTIONS] FILE1 FILE2 ... FILEn" << std::endl + << " FILE a list of files to compare" << std::endl + << " OPTIONS is one or more of the following options:" << std::endl + << " -d LVL adjust the debug level" << std::endl + << " -e EPS set epsilon for floating point comparisons to EPS" << std::endl + << " -v ignore data values" << std::endl + << " -t ignore timestamp" << std::endl + << " -s ignore sequence no" << std::endl + << " -f FMT file format for all files" << std::endl + << " -h show this usage information" << std::endl + << " -V show the version of the tool" << std::endl << std::endl + << "Return codes:" << std::endl + << " 0 files are equal" << std::endl + << " 1 file length not equal" << std::endl + << " 2 sequence no not equal" << std::endl + << " 3 timestamp not equal" << std::endl + << " 4 number of values is not equal" << std::endl + << " 5 data is not equal" << std::endl << std::endl; print_copyright(); } diff --git a/src/villas-test-rtt.cpp b/src/villas-test-rtt.cpp index f7e6bde30..4336da483 100644 --- a/src/villas-test-rtt.cpp +++ b/src/villas-test-rtt.cpp @@ -70,16 +70,16 @@ void quit(int signal, siginfo_t *sinfo, void *ctx) void usage() { - std::cout << "Usage: villas-test-rtt [OPTIONS] CONFIG NODE" << std::endl; - std::cout << " CONFIG path to a configuration file" << std::endl; - std::cout << " NODE name of the node which shoud be used" << std::endl; - std::cout << " OPTIONS is one or more of the following options:" << std::endl; - std::cout << " -c CNT send CNT messages" << std::endl; - std::cout << " -f FD use file descriptor FD for result output instead of stdout" << std::endl; - std::cout << " -b BKTS number of buckets for histogram" << std::endl; - std::cout << " -w WMUP duration of histogram warmup phase" << std::endl; - std::cout << " -h show this usage information" << std::endl; - std::cout << " -V show the version of the tool" << std::endl << std::endl; + std::cout << "Usage: villas-test-rtt [OPTIONS] CONFIG NODE" << std::endl + << " CONFIG path to a configuration file" << std::endl + << " NODE name of the node which shoud be used" << std::endl + << " OPTIONS is one or more of the following options:" << std::endl + << " -c CNT send CNT messages" << std::endl + << " -f FD use file descriptor FD for result output instead of stdout" << std::endl + << " -b BKTS number of buckets for histogram" << std::endl + << " -w WMUP duration of histogram warmup phase" << std::endl + << " -h show this usage information" << std::endl + << " -V show the version of the tool" << std::endl << std::endl; print_copyright(); }