mirror of
https://code.blicky.net/yorhel/ncdu.git
synced 2026-01-12 17:08:39 -09:00
Add reference to "man ncdu" in --help text
Not going to bloat the help output with all those settings...
This commit is contained in:
parent
53d3e4c112
commit
39a137c132
1 changed files with 23 additions and 18 deletions
41
src/main.zig
41
src/main.zig
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue