du: recognize -d N as equivalent to --max-depth=N
authorJon Ringuette <jonr@scharp.org>
Tue, 18 May 2010 06:26:11 +0000 (08:26 +0200)
committerJim Meyering <meyering@redhat.com>
Wed, 19 May 2010 05:28:16 +0000 (07:28 +0200)
commit2b8ecfa6f14db48fbc204b2fc4993de077289c2d
tree8a4b21f3e6de2d934934f20848e83d86387518ff
parent1be4f180f5395b9ef89ab9166e33ba9a54cfba8b
du: recognize -d N as equivalent to --max-depth=N

* NEWS (New features): Mention it.
* src/du.c (DEBUG_OPT): Remove.  Use long-named ---debug instead.
Commented out.
(MAX_DEPTH_OPTION): Remove.  Use 'd' instead.
(main): Insert literal "d:"; remove DEBUG_OPT.
* doc/coreutils.texi (du invocation): Add -d to indices.
* tests/du/max-depth: Exercise -d, too.
NEWS
doc/coreutils.texi
src/du.c
tests/du/max-depth