diff --git a/Base/usr/share/man/man1/du.md b/Base/usr/share/man/man1/du.md index d4a7717859..a51bda3eed 100644 --- a/Base/usr/share/man/man1/du.md +++ b/Base/usr/share/man/man1/du.md @@ -21,7 +21,7 @@ $ du [files...] * `-t size`, `--threshold size`: Exclude entries smaller than size if positive, or entries greater than size if negative * `--time time-type`: Show time of time time-type of any file in the directory, or any of its subdirectories. Available choices: mtime, modification, ctime, status, use, atime, access * `--exclude pattern`: Exclude files that match pattern -* `-X file, --exclude_from`: Exclude files that match any pattern in file +* `-X file, --exclude-from`: Exclude files that match any pattern in file ## Arguments diff --git a/Userland/Utilities/du.cpp b/Userland/Utilities/du.cpp index 96560ce294..81c816d115 100644 --- a/Userland/Utilities/du.cpp +++ b/Userland/Utilities/du.cpp @@ -103,7 +103,7 @@ ErrorOr parse_args(Main::Arguments arguments, Vector& files, DuOpt args_parser.add_option(du_option.threshold, "Exclude entries smaller than size if positive, or entries greater than size if negative", "threshold", 't', "size"); args_parser.add_option(move(time_option)); args_parser.add_option(pattern, "Exclude files that match pattern", "exclude", 0, "pattern"); - args_parser.add_option(exclude_from, "Exclude files that match any pattern in file", "exclude_from", 'X', "file"); + args_parser.add_option(exclude_from, "Exclude files that match any pattern in file", "exclude-from", 'X', "file"); args_parser.add_option(du_option.block_size, "Outputs file sizes as the required blocks with the given size (defaults to 1024)", "block-size", 'B', "size"); args_parser.add_option(move(block_size_1k_option)); args_parser.add_positional_argument(files_to_process, "File to process", "file", Core::ArgsParser::Required::No);