From 11a3acf1fe65a02b5b2d7d691b7d447a52200aba Mon Sep 17 00:00:00 2001 From: Julius Bünger Date: Sat, 16 Jun 2018 16:02:17 +0200 Subject: statistics-cli: rename csv-parameter, update manpage --- doc/man/gnunet-statistics.1 | 3 +++ src/statistics/gnunet-statistics.c | 12 ++++++------ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/doc/man/gnunet-statistics.1 b/doc/man/gnunet-statistics.1 index eed1c1de8..2aa889382 100644 --- a/doc/man/gnunet-statistics.1 +++ b/doc/man/gnunet-statistics.1 @@ -41,6 +41,9 @@ non\-persistent. Statistics are kept for various subsystems. With this option, the output can be restricted to a particular subsystem only. .B +.IP "\-S SEPARATOR, \-\-csv-separator=SEPARATOR" +Specify a separator for generating csv-output. +.B .IP "\-t TESTBED_PATH, \-\-subsystem=TESTBED_PATH" When running testbed, you can get statistics of all peers with specefying the folder containing the data of all testbed nodes like \fBgnunet\-statistics -t /tmp/testbedARtmQv\fP. diff --git a/src/statistics/gnunet-statistics.c b/src/statistics/gnunet-statistics.c index 81563a134..9093336e1 100644 --- a/src/statistics/gnunet-statistics.c +++ b/src/statistics/gnunet-statistics.c @@ -787,12 +787,6 @@ int main (int argc, char *const *argv) { struct GNUNET_GETOPT_CommandLineOption options[] = { - GNUNET_GETOPT_option_string ('d', - "csv-separator", - "CSV_SEPARATOR", - gettext_noop ("use as csv separator"), - &csv_separator), - GNUNET_GETOPT_option_string ('n', "name", "NAME", @@ -810,6 +804,12 @@ main (int argc, char *const *argv) gettext_noop ("limit output to the given SUBSYSTEM"), &subsystem), + GNUNET_GETOPT_option_string ('S', + "csv-separator", + "CSV_SEPARATOR", + gettext_noop ("use as csv separator"), + &csv_separator), + GNUNET_GETOPT_option_filename ('t', "testbed", "TESTBED", -- cgit v1.2.3