diff options
author | Julius Bünger <buenger@mytum.de> | 2018-06-16 16:02:17 +0200 |
---|---|---|
committer | Julius Bünger <buenger@mytum.de> | 2018-06-16 16:02:17 +0200 |
commit | 11a3acf1fe65a02b5b2d7d691b7d447a52200aba (patch) | |
tree | a5542503c46468f3764b995dea9224cf18050cdf | |
parent | 89887cddfe69fb0582e0c9a26996a9c5b025e702 (diff) | |
download | gnunet-11a3acf1fe65a02b5b2d7d691b7d447a52200aba.tar.gz gnunet-11a3acf1fe65a02b5b2d7d691b7d447a52200aba.zip |
statistics-cli: rename csv-parameter, update manpage
-rw-r--r-- | doc/man/gnunet-statistics.1 | 3 | ||||
-rw-r--r-- | 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. | |||
41 | Statistics are kept for various subsystems. With this option, the | 41 | Statistics are kept for various subsystems. With this option, the |
42 | output can be restricted to a particular subsystem only. | 42 | output can be restricted to a particular subsystem only. |
43 | .B | 43 | .B |
44 | .IP "\-S SEPARATOR, \-\-csv-separator=SEPARATOR" | ||
45 | Specify a separator for generating csv-output. | ||
46 | .B | ||
44 | .IP "\-t TESTBED_PATH, \-\-subsystem=TESTBED_PATH" | 47 | .IP "\-t TESTBED_PATH, \-\-subsystem=TESTBED_PATH" |
45 | When running testbed, you can get statistics of all peers with specefying the | 48 | When running testbed, you can get statistics of all peers with specefying the |
46 | folder containing the data of all testbed nodes like \fBgnunet\-statistics -t /tmp/testbedARtmQv\fP. | 49 | 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 | |||
787 | main (int argc, char *const *argv) | 787 | main (int argc, char *const *argv) |
788 | { | 788 | { |
789 | struct GNUNET_GETOPT_CommandLineOption options[] = { | 789 | struct GNUNET_GETOPT_CommandLineOption options[] = { |
790 | GNUNET_GETOPT_option_string ('d', | ||
791 | "csv-separator", | ||
792 | "CSV_SEPARATOR", | ||
793 | gettext_noop ("use as csv separator"), | ||
794 | &csv_separator), | ||
795 | |||
796 | GNUNET_GETOPT_option_string ('n', | 790 | GNUNET_GETOPT_option_string ('n', |
797 | "name", | 791 | "name", |
798 | "NAME", | 792 | "NAME", |
@@ -810,6 +804,12 @@ main (int argc, char *const *argv) | |||
810 | gettext_noop ("limit output to the given SUBSYSTEM"), | 804 | gettext_noop ("limit output to the given SUBSYSTEM"), |
811 | &subsystem), | 805 | &subsystem), |
812 | 806 | ||
807 | GNUNET_GETOPT_option_string ('S', | ||
808 | "csv-separator", | ||
809 | "CSV_SEPARATOR", | ||
810 | gettext_noop ("use as csv separator"), | ||
811 | &csv_separator), | ||
812 | |||
813 | GNUNET_GETOPT_option_filename ('t', | 813 | GNUNET_GETOPT_option_filename ('t', |
814 | "testbed", | 814 | "testbed", |
815 | "TESTBED", | 815 | "TESTBED", |