2
0

002.c 461 B

1234567891011121314151617
  1. static char *string_option;
  2. static int a_flag;
  3. // ...
  4. struct GNUNET_GETOPT_CommandLineOption options[] = {
  5. GNUNET_GETOPT_option_string ('s', "name", "SOMESTRING",
  6. gettext_noop ("text describing the string_option NAME"),
  7. &string_option},
  8. GNUNET_GETOPT_option_flag ('f', "flag",
  9. gettext_noop ("text describing the flag option"),
  10. &a_flag),
  11. GNUNET_GETOPT_OPTION_END
  12. };
  13. string_option = NULL;
  14. a_flag = GNUNET_SYSERR;
  15. // ...