diff options
Diffstat (limited to 'src/regex')
-rw-r--r-- | src/regex/gnunet-regex-profiler.c | 49 |
1 files changed, 33 insertions, 16 deletions
diff --git a/src/regex/gnunet-regex-profiler.c b/src/regex/gnunet-regex-profiler.c index dfbcd388a..71f3580f8 100644 --- a/src/regex/gnunet-regex-profiler.c +++ b/src/regex/gnunet-regex-profiler.c | |||
@@ -1477,22 +1477,39 @@ run (void *cls, | |||
1477 | int | 1477 | int |
1478 | main (int argc, char *const *argv) | 1478 | main (int argc, char *const *argv) |
1479 | { | 1479 | { |
1480 | static const struct GNUNET_GETOPT_CommandLineOption options[] = { | 1480 | struct GNUNET_GETOPT_CommandLineOption options[] = { |
1481 | {'o', "output-file", "FILENAME", | 1481 | |
1482 | gettext_noop ("name of the file for writing statistics"), | 1482 | GNUNET_GETOPT_OPTION_FILENAME ('o', |
1483 | GNUNET_YES, &GNUNET_GETOPT_set_string, &data_filename}, | 1483 | "output-file", |
1484 | {'t', "matching-timeout", "TIMEOUT", | 1484 | "FILENAME", |
1485 | gettext_noop ("wait TIMEOUT before ending the experiment"), | 1485 | gettext_noop ("name of the file for writing statistics"), |
1486 | GNUNET_YES, &GNUNET_GETOPT_set_relative_time, &search_timeout_time}, | 1486 | &data_filename), |
1487 | {'p', "policy-dir", "DIRECTORY", | 1487 | |
1488 | gettext_noop ("directory with policy files"), | 1488 | GNUNET_GETOPT_OPTION_SET_RELATIVE_TIME ('t', |
1489 | GNUNET_YES, &GNUNET_GETOPT_set_filename, &policy_dir}, | 1489 | "matching-timeout", |
1490 | {'s', "strings-file", "FILENAME", | 1490 | "TIMEOUT", |
1491 | gettext_noop ("name of file with input strings"), | 1491 | gettext_noop ("wait TIMEOUT before ending the experiment"), |
1492 | GNUNET_YES, &GNUNET_GETOPT_set_filename, &strings_file}, | 1492 | &search_timeout_time), |
1493 | {'H', "hosts-file", "FILENAME", | 1493 | |
1494 | gettext_noop ("name of file with hosts' names"), | 1494 | GNUNET_GETOPT_OPTION_FILENAME ('p', |
1495 | GNUNET_YES, &GNUNET_GETOPT_set_filename, &hosts_file}, | 1495 | "policy-dir", |
1496 | "DIRECTORY", | ||
1497 | gettext_noop ("directory with policy files"), | ||
1498 | &policy_dir), | ||
1499 | |||
1500 | |||
1501 | GNUNET_GETOPT_OPTION_FILENAME ('s', | ||
1502 | "strings-file", | ||
1503 | "FILENAME", | ||
1504 | gettext_noop ("name of file with input strings"), | ||
1505 | &strings_file), | ||
1506 | |||
1507 | GNUNET_GETOPT_OPTION_FILENAME ('H', | ||
1508 | "hosts-file", | ||
1509 | "FILENAME", | ||
1510 | gettext_noop ("name of file with hosts' names"), | ||
1511 | &hosts_file), | ||
1512 | |||
1496 | GNUNET_GETOPT_OPTION_END | 1513 | GNUNET_GETOPT_OPTION_END |
1497 | }; | 1514 | }; |
1498 | int ret; | 1515 | int ret; |