patch-getopt_c 1.3 KB

1234567891011121314151617181920212223
  1. $OpenBSD: patch-getopt_c,v 1.3 2014/12/10 20:46:57 rpe Exp $
  2. --- getopt.c.orig Sun Dec 7 19:43:10 2014
  3. +++ getopt.c Sun Dec 7 19:44:48 2014
  4. @@ -341,15 +341,15 @@ static void __attribute__ ((__noreturn__)) print_help(
  5. fputs(_(" -l, --longoptions <longopts> Long options to be recognized\n"), stderr);
  6. fputs(_(" -n, --name <progname> The name under which errors are reported\n"), stderr);
  7. fputs(_(" -o, --options <optstring> Short options to be recognized\n"), stderr);
  8. - fputs(_(" -q, --quiet Disable error reporting by getopt(3)\n"), stderr);
  9. + fputs(_(" -q, --quiet Disable error reporting by gnugetopt(3)\n"), stderr);
  10. fputs(_(" -Q, --quiet-output No normal output\n"), stderr);
  11. fputs(_(" -s, --shell <shell> Set shell quoting conventions\n"), stderr);
  12. - fputs(_(" -T, --test Test for getopt(1) version\n"), stderr);
  13. + fputs(_(" -T, --test Test for gnugetopt(1) version\n"), stderr);
  14. fputs(_(" -u, --unquoted Do not quote the output\n"), stderr);
  15. fputs(USAGE_SEPARATOR, stderr);
  16. fputs(USAGE_HELP, stderr);
  17. fputs(USAGE_VERSION, stderr);
  18. - fprintf(stderr, USAGE_MAN_TAIL("getopt(1)"));
  19. + fprintf(stderr, USAGE_MAN_TAIL("gnugetopt(1)"));
  20. exit(PARAMETER_EXIT_CODE);
  21. }