]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Add long options.
authorJim Meyering <jim@meyering.net>
Mon, 8 Feb 1993 05:13:43 +0000 (05:13 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 8 Feb 1993 05:13:43 +0000 (05:13 +0000)
src/chmod.c

index 4e04dfc6442406a0a37e7c019d9fd70ed277009c..3df4b99aba42fa5149fa0400949fe831a276bae9 100644 (file)
@@ -57,6 +57,16 @@ static int verbose;
 /* If nonzero, describe only modes that change. */
 static int changes_only;
 
+static struct option const long_options[] =
+{
+  {"recursive", no_argument, 0, 'R'},
+  {"changes", no_argument, 0, 'c'},
+  {"silent", no_argument, 0, 'f'},
+  {"quiet", no_argument, 0, 'f'},
+  {"verbose", no_argument, 0, 'v'},
+  {0, 0, 0, 0}
+};
+
 /* Parse the ASCII mode given on the command line into a linked list
    of `struct mode_change' and apply that to each file argument. */
 
@@ -78,7 +88,8 @@ main (argc, argv)
     {
       thisind = optind ? optind : 1;
 
-      c = getopt (argc, argv, "RcfvrwxXstugoa,+-=");
+      c = getopt_long (argc, argv, "RcfvrwxXstugoa,+-=", long_options,
+                      (int *) 0);
       if (c == EOF)
        break;