diff options
author | Jim Meyering <jim@meyering.net> | 2002-07-03 08:44:55 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2002-07-03 08:44:55 +0000 |
commit | 27195acdb6656eaae9e25aa89ef54e79e3126f3b (patch) | |
tree | 3837d093f0658e9c2720c5e7878f40e449cb7dff /src | |
parent | 421c142235b486421de77165917c49f406d45fc3 (diff) | |
download | coreutils-27195acdb6656eaae9e25aa89ef54e79e3126f3b.tar.xz |
(usage): Rename --link/-l to --dereference/-L.
Describe --secure.
Describe --format.
(main): Support -L. Deprecate -l.
Diffstat (limited to 'src')
-rw-r--r-- | src/stat.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/stat.c b/src/stat.c index 9d1f87a49..d8ccee349 100644 --- a/src/stat.c +++ b/src/stat.c @@ -121,7 +121,8 @@ size_t nstrftime PARAMS ((char *, size_t, char const *, #define AUTHORS "Michael Meskes" static struct option const long_options[] = { - {"link", no_argument, 0, 'l'}, + {"link", no_argument, 0, 'l'}, /* deprecated. FIXME: remove in 2003 */ + {"dereference", no_argument, 0, 'L'}, {"format", required_argument, 0, 'c'}, {"filesystem", no_argument, 0, 'f'}, {"secure", no_argument, 0, 's'}, @@ -863,11 +864,11 @@ usage (int status) fputs (_("\ Display file or filesystem status.\n\ \n\ - -f, --filesystem display filesystem status instead of file status\n\ - -c --format=FORMAT FIXME\n\ - -l, --link follow links\n\ - -s, --secure FIXME\n\ - -t, --terse print the information in terse form\n\ + -f, --filesystem display filesystem status instead of file status\n\ + -c --format=FORMAT use the specified FORMAT instead of the default\n\ + -l, --dereference follow links\n\ + -s, --secure display any security context (SE Linux)\n\ + -t, --terse print the information in terse form\n\ "), stdout); fputs (HELP_OPTION_DESCRIPTION, stdout); fputs (VERSION_OPTION_DESCRIPTION, stdout); @@ -953,14 +954,15 @@ main (int argc, char *argv[]) atexit (close_stdout); - while ((c = getopt_long (argc, argv, "c:flst", long_options, NULL)) != -1) + while ((c = getopt_long (argc, argv, "c:fLlst", long_options, NULL)) != -1) { switch (c) { case 'c': format = optarg; break; - case 'l': + case 'l': /* deprecated */ + case 'L': follow_links = 1; break; case 'f': |