Skip to content
Snippets Groups Projects
Commit 39a137c1 authored by Yorhel's avatar Yorhel
Browse files

Add reference to "man ncdu" in --help text

Not going to bloat the help output with all those settings...
parent 53d3e4c1
No related branches found
No related tags found
No related merge requests found
...@@ -286,24 +286,29 @@ fn version() noreturn { ...@@ -286,24 +286,29 @@ fn version() noreturn {
fn help() noreturn { fn help() noreturn {
std.io.getStdOut().writer().writeAll( std.io.getStdOut().writer().writeAll(
"ncdu <options> <directory>\n\n" \\ncdu <options> <directory>
++ " -h,--help This help message\n" \\
++ " -q Quiet mode, refresh interval 2 seconds\n" \\Options:
++ " -v,-V,--version Print version\n" \\ -h,--help This help message
++ " -x Same filesystem\n" \\ -q Quiet mode, refresh interval 2 seconds
++ " -e Enable extended information\n" \\ -v,-V,--version Print version
++ " -r Read only\n" \\ -x Same filesystem
++ " -o FILE Export scanned directory to FILE\n" \\ -e Enable extended information
++ " -f FILE Import scanned directory from FILE\n" \\ -r Read only
++ " -0,-1,-2 UI to use when scanning (0=none,2=full ncurses)\n" \\ -o FILE Export scanned directory to FILE
++ " --si Use base 10 (SI) prefixes instead of base 2\n" \\ -f FILE Import scanned directory from FILE
++ " --exclude PATTERN Exclude files that match PATTERN\n" \\ -0,-1,-2 UI to use when scanning (0=none,2=full ncurses)
++ " -X, --exclude-from FILE Exclude files that match any pattern in FILE\n" \\ --si Use base 10 (SI) prefixes instead of base 2
++ " -L, --follow-symlinks Follow symbolic links (excluding directories)\n" \\ --exclude PATTERN Exclude files that match PATTERN
++ " --exclude-caches Exclude directories containing CACHEDIR.TAG\n" \\ -X, --exclude-from FILE Exclude files that match any pattern in FILE
++ " --exclude-kernfs Exclude Linux pseudo filesystems (procfs,sysfs,cgroup,...)\n" \\ -L, --follow-symlinks Follow symbolic links (excluding directories)
++ " --confirm-quit Confirm quitting ncdu\n" \\ --exclude-caches Exclude directories containing CACHEDIR.TAG
++ " --color SCHEME Set color scheme (off/dark/dark-bg)\n" \\ --exclude-kernfs Exclude Linux pseudo filesystems (procfs,sysfs,cgroup,...)
\\ --confirm-quit Confirm quitting ncdu
\\ --color SCHEME Set color scheme (off/dark/dark-bg)
\\
\\Refer to `man ncdu` for the full list of options.
\\
) catch {}; ) catch {};
std.process.exit(0); std.process.exit(0);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment