diff options
author | Jim Meyering <jim@meyering.net> | 1993-08-05 02:20:48 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1993-08-05 02:20:48 +0000 |
commit | 410da16d0250bcf31c51a160de9eccb92667c7fe (patch) | |
tree | fb530f65b6ee0bc13a6cc8c1e9f576d9d92d447f /src/rmdir.c | |
parent | 08701d38a4c4e746e79132651c4577a6c03b02f6 (diff) | |
download | coreutils-410da16d0250bcf31c51a160de9eccb92667c7fe.tar.xz |
merge with 3.8.1
Diffstat (limited to 'src/rmdir.c')
-rw-r--r-- | src/rmdir.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/rmdir.c b/src/rmdir.c index 7302f25d4..6c1341ec2 100644 --- a/src/rmdir.c +++ b/src/rmdir.c @@ -16,7 +16,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ /* Options: - -p, --path Remove any parent dirs that are explicitly mentioned + -p, --parent Remove any parent dirs that are explicitly mentioned in an argument, if they become empty after the argument file is removed. @@ -41,16 +41,17 @@ char *program_name; static int empty_paths; /* If non-zero, display usage information and exit. */ -static int flag_help; +static int show_help; /* If non-zero, print the version on standard error. */ -static int flag_version; +static int show_version; static struct option const longopts[] = { {"path", no_argument, &empty_paths, 1}, - {"help", no_argument, &flag_help, 1}, - {"version", no_argument, &flag_version, 1}, + {"parents", no_argument, &empty_paths, 1}, + {"help", no_argument, &show_help, 1}, + {"version", no_argument, &show_version, 1}, {NULL, 0, NULL, 0} }; @@ -79,13 +80,13 @@ main (argc, argv) } } - if (flag_version) + if (show_version) { fprintf (stderr, "%s\n", version_string); exit (0); } - if (flag_help) + if (show_help) usage (); if (optind == argc) @@ -134,7 +135,7 @@ remove_parents (path) static void usage () { - fprintf (stderr, "Usage: %s [-p] [--path] [--help] [--version] dir...\n", + fprintf (stderr, "Usage: %s [-p] [--parents] [--help] [--version] dir...\n", program_name); exit (1); } |