Use PROGRAM_NAME in place of string in parse_long_options call.
authorJim Meyering <jim@meyering.net>
Sat, 3 Apr 1999 05:20:06 +0000 (05:20 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 3 Apr 1999 05:20:06 +0000 (05:20 +0000)
26 files changed:
src/cat.c
src/cksum.c
src/comm.c
src/csplit.c
src/cut.c
src/expand.c
src/fmt.c
src/fold.c
src/head.c
src/join.c
src/md5sum.c
src/nl.c
src/od.c
src/paste.c
src/pr.c
src/ptx.c
src/sort.c
src/split.c
src/sum.c
src/tac.c
src/tail.c
src/tr.c
src/tsort.c
src/unexpand.c
src/uniq.c
src/wc.c

index 503efe7..3859673 100644 (file)
--- a/src/cat.c
+++ b/src/cat.c
@@ -534,7 +534,7 @@ main (int argc, char **argv)
   bindtextdomain (PACKAGE, LOCALEDIR);
   textdomain (PACKAGE);
 
-  parse_long_options (argc, argv, "cat", GNU_PACKAGE, VERSION,
+  parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
                      "Torbjorn Granlund and Richard M. Stallman", usage);
 
   /* Parse command line options.  */
index 2f3cf38..60ed6d4 100644 (file)
@@ -290,7 +290,7 @@ main (int argc, char **argv)
   bindtextdomain (PACKAGE, LOCALEDIR);
   textdomain (PACKAGE);
 
-  parse_long_options (argc, argv, "cksum", GNU_PACKAGE, VERSION,
+  parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
                      "Q. Frank Xia", usage);
 
   have_read_stdin = 0;
index 774aee0..504a157 100644 (file)
@@ -217,7 +217,7 @@ main (int argc, char **argv)
   bindtextdomain (PACKAGE, LOCALEDIR);
   textdomain (PACKAGE);
 
-  parse_long_options (argc, argv, "comm", GNU_PACKAGE, VERSION,
+  parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
                      "Richard Stallman and David MacKenzie", usage);
 
   only_file_1 = 1;
index b993ecd..9e1148c 100644 (file)
@@ -1375,7 +1375,7 @@ main (int argc, char **argv)
   bindtextdomain (PACKAGE, LOCALEDIR);
   textdomain (PACKAGE);
 
-  parse_long_options (argc, argv, "csplit", GNU_PACKAGE, VERSION,
+  parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
                      "Stuart Kemp and David MacKenzie", usage);
 
   global_argv = argv;
index 05bf843..94360c1 100644 (file)
--- a/src/cut.c
+++ b/src/cut.c
@@ -692,7 +692,7 @@ main (int argc, char **argv)
   bindtextdomain (PACKAGE, LOCALEDIR);
   textdomain (PACKAGE);
 
-  parse_long_options (argc, argv, "cut", GNU_PACKAGE, VERSION,
+  parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
                      "David Ihnat, David MacKenzie, and Jim Meyering", usage);
 
   operating_mode = undefined_mode;
index b1c448e..d448484 100644 (file)
@@ -336,7 +336,7 @@ main (int argc, char **argv)
   bindtextdomain (PACKAGE, LOCALEDIR);
   textdomain (PACKAGE);
 
-  parse_long_options (argc, argv, "expand", GNU_PACKAGE, VERSION,
+  parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
                      "David MacKenzie", usage);
 
   while ((c = getopt_long (argc, argv, "it:,0123456789", longopts, NULL)) != -1)
index 81f6917..bc1a97a 100644 (file)
--- a/src/fmt.c
+++ b/src/fmt.c
@@ -313,7 +313,7 @@ main (register int argc, register char **argv)
   bindtextdomain (PACKAGE, LOCALEDIR);
   textdomain (PACKAGE);
 
-  parse_long_options (argc, argv, "fmt", GNU_PACKAGE, VERSION,
+  parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
                      "Ross Paterson", usage);
 
   crown = tagged = split = uniform = FALSE;
index a3c387e..630a2f8 100644 (file)
@@ -239,7 +239,7 @@ main (int argc, char **argv)
   bindtextdomain (PACKAGE, LOCALEDIR);
   textdomain (PACKAGE);
 
-  parse_long_options (argc, argv, "fold", GNU_PACKAGE, VERSION,
+  parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
                      "David MacKenzie", usage);
 
   break_spaces = count_bytes = have_read_stdin = 0;
index ad03cdd..3a890df 100644 (file)
@@ -264,7 +264,7 @@ main (int argc, char **argv)
   bindtextdomain (PACKAGE, LOCALEDIR);
   textdomain (PACKAGE);
 
-  parse_long_options (argc, argv, "head", GNU_PACKAGE, VERSION,
+  parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
                      "David MacKenzie", usage);
 
   have_read_stdin = 0;
index e74bbab..8073a56 100644 (file)
@@ -740,7 +740,7 @@ main (int argc, char **argv)
      it may be increased.  */
   uni_blank.nfields = 1;
 
-  parse_long_options (argc, argv, "join", GNU_PACKAGE, VERSION,
+  parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
                      "Mike Haertel", usage);
 
   nfiles = 0;
index c0973fb..93ae441 100644 (file)
@@ -475,7 +475,7 @@ main (int argc, char **argv)
   bindtextdomain (PACKAGE, LOCALEDIR);
   textdomain (PACKAGE);
 
-  parse_long_options (argc, argv, "md5sum", GNU_PACKAGE, VERSION,
+  parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
                      "Ulrich Drepper", usage);
 
   while ((opt = getopt_long (argc, argv, "bctw", long_options, NULL)) != -1)
index b0b3c85..6f68687 100644 (file)
--- a/src/nl.c
+++ b/src/nl.c
@@ -448,7 +448,7 @@ main (int argc, char **argv)
   bindtextdomain (PACKAGE, LOCALEDIR);
   textdomain (PACKAGE);
 
-  parse_long_options (argc, argv, "nl", GNU_PACKAGE, VERSION,
+  parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
                      "Scott Bartram and David MacKenzie", usage);
 
   have_read_stdin = 0;
index dd21762..42a2cd9 100644 (file)
--- a/src/od.c
+++ b/src/od.c
@@ -1596,7 +1596,7 @@ main (int argc, char **argv)
   bindtextdomain (PACKAGE, LOCALEDIR);
   textdomain (PACKAGE);
 
-  parse_long_options (argc, argv, "od", GNU_PACKAGE, VERSION,
+  parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
                      "Jim Meyering", usage);
 
   err = 0;
index bdf31cc..d3a6488 100644 (file)
@@ -434,7 +434,7 @@ main (int argc, char **argv)
   bindtextdomain (PACKAGE, LOCALEDIR);
   textdomain (PACKAGE);
 
-  parse_long_options (argc, argv, "paste", GNU_PACKAGE, VERSION,
+  parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
                      "David M. Ihnat", usage);
 
   have_read_stdin = 0;
index 43ab930..87729d4 100644 (file)
--- a/src/pr.c
+++ b/src/pr.c
@@ -825,7 +825,7 @@ main (int argc, char **argv)
   bindtextdomain (PACKAGE, LOCALEDIR);
   textdomain (PACKAGE);
 
-  parse_long_options (argc, argv, "pr", GNU_PACKAGE, VERSION,
+  parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
                      "Pete TerMaat and Roland Huebner", usage);
 
   n_files = 0;
index 75c4f94..06a315b 100644 (file)
--- a/src/ptx.c
+++ b/src/ptx.c
@@ -1966,7 +1966,7 @@ main (int argc, char **argv)
   setchrclass (NULL);
 #endif
 
-  parse_long_options (argc, argv, "ptx", GNU_PACKAGE, VERSION,
+  parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
                      "François Pinard", usage);
 
   while (optchar = getopt_long (argc, argv, "ACF:GM:ORS:TW:b:i:fg:o:trw:",
index 20c05e1..c0c98ea 100644 (file)
@@ -2528,7 +2528,7 @@ main (int argc, char **argv)
   bindtextdomain (PACKAGE, LOCALEDIR);
   textdomain (PACKAGE);
 
-  parse_long_options (argc, argv, "sort", GNU_PACKAGE, VERSION,
+  parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
                      "Mike Haertel", usage);
 
   have_read_stdin = 0;
index 9a0407c..a350aa8 100644 (file)
@@ -345,7 +345,7 @@ main (int argc, char **argv)
   bindtextdomain (PACKAGE, LOCALEDIR);
   textdomain (PACKAGE);
 
-  parse_long_options (argc, argv, "split", GNU_PACKAGE, VERSION,
+  parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
                      "Torbjorn Granlund and Richard M. Stallman", usage);
 
   /* Parse command line options.  */
index c2c7fc0..8a76c23 100644 (file)
--- a/src/sum.c
+++ b/src/sum.c
@@ -212,7 +212,7 @@ main (int argc, char **argv)
 
   have_read_stdin = 0;
 
-  parse_long_options (argc, argv, "sum", GNU_PACKAGE, VERSION,
+  parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
                      "Kayvan Aghaiepour and David MacKenzie", usage);
 
   while ((optc = getopt_long (argc, argv, "rs", longopts, NULL)) != -1)
index ca640b8..dca32bd 100644 (file)
--- a/src/tac.c
+++ b/src/tac.c
@@ -612,7 +612,7 @@ main (int argc, char **argv)
   bindtextdomain (PACKAGE, LOCALEDIR);
   textdomain (PACKAGE);
 
-  parse_long_options (argc, argv, "tac", GNU_PACKAGE, VERSION,
+  parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
                      "Jay Lepreau and David MacKenzie", usage);
 
   errors = 0;
index 09ef59e..0f0177a 100644 (file)
@@ -1340,7 +1340,7 @@ main (int argc, char **argv)
 
   have_read_stdin = 0;
 
-  parse_long_options (argc, argv, "tail", GNU_PACKAGE, VERSION,
+  parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
            "Paul Rubin, David MacKenzie, Ian Lance Taylor, and Jim Meyering",
                      usage);
 
index 75c763a..8e52293 100644 (file)
--- a/src/tr.c
+++ b/src/tr.c
@@ -1801,7 +1801,7 @@ main (int argc, char **argv)
   bindtextdomain (PACKAGE, LOCALEDIR);
   textdomain (PACKAGE);
 
-  parse_long_options (argc, argv, "tr", GNU_PACKAGE, VERSION,
+  parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
                      "Jim Meyering", usage);
 
   while ((c = getopt_long (argc, argv, "cdst", long_options, NULL)) != -1)
index 3cf9479..e7fdc34 100644 (file)
@@ -459,7 +459,7 @@ main (int argc, char **argv)
   bindtextdomain (PACKAGE, LOCALEDIR);
   textdomain (PACKAGE);
 
-  parse_long_options (argc, argv, "tsort", GNU_PACKAGE, VERSION,
+  parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
                      "Mark Kettenis", usage);
 
   while ((opt = getopt_long (argc, argv, "", long_options, NULL)) != -1)
index e9ed348..22fa0fd 100644 (file)
@@ -387,7 +387,7 @@ main (int argc, char **argv)
   bindtextdomain (PACKAGE, LOCALEDIR);
   textdomain (PACKAGE);
 
-  parse_long_options (argc, argv, "unexpand", GNU_PACKAGE, VERSION,
+  parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
                      "David MacKenzie", usage);
 
   have_read_stdin = 0;
index b08f190..c3457c3 100644 (file)
@@ -287,7 +287,7 @@ main (int argc, char **argv)
   bindtextdomain (PACKAGE, LOCALEDIR);
   textdomain (PACKAGE);
 
-  parse_long_options (argc, argv, "uniq", GNU_PACKAGE, VERSION,
+  parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
                      "Richard Stallman and David MacKenzie", usage);
 
   skip_chars = 0;
index 9750a77..db2365c 100644 (file)
--- a/src/wc.c
+++ b/src/wc.c
@@ -300,7 +300,7 @@ main (int argc, char **argv)
   bindtextdomain (PACKAGE, LOCALEDIR);
   textdomain (PACKAGE);
 
-  parse_long_options (argc, argv, "wc", GNU_PACKAGE, VERSION,
+  parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
                      "Paul Rubin and David MacKenzie", usage);
 
   exit_status = 0;