diff options
Diffstat (limited to 'coreutils/du.c')
-rw-r--r-- | coreutils/du.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/coreutils/du.c b/coreutils/du.c index 947c46e74..d5ce46cf2 100644 --- a/coreutils/du.c +++ b/coreutils/du.c | |||
@@ -242,8 +242,11 @@ int du_main(int argc UNUSED_PARAM, char **argv) | |||
242 | * ignore -a. This is consistent with -s being equivalent to -d 0. | 242 | * ignore -a. This is consistent with -s being equivalent to -d 0. |
243 | */ | 243 | */ |
244 | #if ENABLE_FEATURE_HUMAN_READABLE | 244 | #if ENABLE_FEATURE_HUMAN_READABLE |
245 | opt_complementary = "h-km:k-hm:m-hk:H-L:L-H:s-d:d-s"; | 245 | opt = getopt32(argv, "^" |
246 | opt = getopt32(argv, "aHkLsx" "d:+" "lc" "hm", &G.max_print_depth); | 246 | "aHkLsxd:+lchm" |
247 | "\0" "h-km:k-hm:m-hk:H-L:L-H:s-d:d-s", | ||
248 | &G.max_print_depth | ||
249 | ); | ||
247 | argv += optind; | 250 | argv += optind; |
248 | if (opt & OPT_h_for_humans) { | 251 | if (opt & OPT_h_for_humans) { |
249 | G.disp_unit = 0; | 252 | G.disp_unit = 0; |
@@ -255,8 +258,11 @@ int du_main(int argc UNUSED_PARAM, char **argv) | |||
255 | G.disp_unit = 1024; | 258 | G.disp_unit = 1024; |
256 | } | 259 | } |
257 | #else | 260 | #else |
258 | opt_complementary = "H-L:L-H:s-d:d-s"; | 261 | opt = getopt32(argv, "^" |
259 | opt = getopt32(argv, "aHkLsx" "d:+" "lc", &G.max_print_depth); | 262 | "aHkLsxd:+lc" |
263 | "\0" "H-L:L-H:s-d:d-s", | ||
264 | &G.max_print_depth | ||
265 | ); | ||
260 | argv += optind; | 266 | argv += optind; |
261 | #if !ENABLE_FEATURE_DU_DEFAULT_BLOCKSIZE_1K | 267 | #if !ENABLE_FEATURE_DU_DEFAULT_BLOCKSIZE_1K |
262 | if (opt & OPT_k_kbytes) { | 268 | if (opt & OPT_k_kbytes) { |