df: warn if soon-to-be-removed --megabyte option is used
authorBernhard Voelker <mail@bernhard-voelker.de>
Wed, 11 Jul 2012 15:27:20 +0000 (17:27 +0200)
committerJim Meyering <meyering@redhat.com>
Wed, 11 Jul 2012 18:30:21 +0000 (20:30 +0200)
commit453ce92f6fadaacd08a8e88c6a239129bd3397e3
treeeb7da1de6f64fce2fa4bc841b96d3d6c065811b2
parentc2f590dc9a08dabcd18411bd4a4b85a0a82c2c08
df: warn if soon-to-be-removed --megabyte option is used

* src/df.c (MEGABYTES_OPTION): Add enum and mark it for removal
in August 2013.
(long_options): Use MEGABYTES_OPTION for --megabytes option.
(main): Add a case for it and issue a deprecation warning if
the long form is used.  Document the short -m option to
exist only for BSD compatibility.
src/df.c