diff options
author | Bernhard Voelker <mail@bernhard-voelker.de> | 2013-11-29 13:07:47 +0100 |
---|---|---|
committer | Bernhard Voelker <mail@bernhard-voelker.de> | 2013-11-29 13:07:47 +0100 |
commit | 64520354bbd36614d8091dcf654c2e69e686bc64 (patch) | |
tree | 1b158a601eb8ad23ab4c45fb4054ed35697539d1 | |
parent | 142baf67407e1766f83cf000c9269a66048773b5 (diff) | |
download | coreutils-64520354bbd36614d8091dcf654c2e69e686bc64.tar.xz |
df: remove long-obsolescent --megabytes option
This option has been undocumented for 12 years [1], and warned
about for a year [2].
[1] commit FILEUTILS-4_1_4-23-gd177203
[2] commit v8.17-43-g453ce92
* src/df.c (MEGABYTES_OPTION): Remove.
(long_options): Remove "megabytes" element.
(main): In the option parsing loop, remove the MEGABYTES_OPTION case.
* NEWS: Mention the change.
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | src/df.c | 11 |
2 files changed, 3 insertions, 10 deletions
@@ -99,6 +99,8 @@ GNU coreutils NEWS -*- outline -*- dd status=none now suppresses all non fatal diagnostic messages, not just the transfer counts. + df no longer accepts the long-obsolescent --megabytes option. + stdbuf now requires at least one buffering mode option to be specified, as per the documented interface. @@ -242,8 +242,7 @@ enum NO_SYNC_OPTION = CHAR_MAX + 1, SYNC_OPTION, TOTAL_OPTION, - OUTPUT_OPTION, - MEGABYTES_OPTION /* FIXME: remove long opt in Aug 2013 */ + OUTPUT_OPTION }; static struct option const long_options[] = @@ -254,7 +253,6 @@ static struct option const long_options[] = {"human-readable", no_argument, NULL, 'h'}, {"si", no_argument, NULL, 'H'}, {"local", no_argument, NULL, 'l'}, - {"megabytes", no_argument, NULL, MEGABYTES_OPTION}, /* obsolescent, */ {"output", optional_argument, NULL, OUTPUT_OPTION}, {"portability", no_argument, NULL, 'P'}, {"print-type", no_argument, NULL, 'T'}, @@ -1358,13 +1356,6 @@ main (int argc, char **argv) case 'l': show_local_fs = true; break; - case MEGABYTES_OPTION: - /* Distinguish between the long and the short option. - As we want to remove the long option soon, - give a warning when the long form is used. */ - error (0, 0, "%s%s", _("warning: "), - _("long option '--megabytes' is deprecated" - " and will soon be removed")); case 'm': /* obsolescent, exists for BSD compatibility */ human_output_opts = 0; output_block_size = 1024 * 1024; |