コード例 #1
0
ファイル: hc.c プロジェクト: aegoroff/linq2hash
void prhc_print_table_syntax(void* argtable) {
    lib_printf(PROG_EXE);
    arg_print_syntax(stdout, argtable, NEW_LINE NEW_LINE);
    arg_print_glossary_gnu(stdout, argtable);
    lib_new_line();
    lib_new_line();
}
コード例 #2
0
ファイル: configuration.c プロジェクト: aegoroff/grok
void prconf_print_syntax(void* argtable, void* argtableS, void* argtableF) {
    prconf_print_copyright();

    lib_printf(PROG_EXE);
    arg_print_syntax(stdout, argtableS, NEW_LINE NEW_LINE);

    lib_printf(PROG_EXE);
    arg_print_syntax(stdout, argtableF, NEW_LINE NEW_LINE);

    arg_print_glossary_gnu(stdout, argtable);
}
コード例 #3
0
ファイル: flicamtest.c プロジェクト: cheoppy/flitest
/**
 * Prints the help based on argtable.
 *
 * @return  Zero on success, non-zero on failure.
 */
int camera_help() {
  int i;
  for (i = 1; i <= NUMBER_OF_DIFFERENT_SYNTAXES; i++) {
    if (i == 1) {
      printf("Usage: %s", progname);
    } else {
      printf("       %s", progname);
    }
    arg_print_syntax(stdout, argtable[i], "\n");
  }
  printf("Explanation of the options:\n");
  for (i = 1; i <= NUMBER_OF_DIFFERENT_SYNTAXES; i++) {
    arg_print_glossary_gnu(stdout, argtable[i]);
  }
  return 0;
}