summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2021-10-06 13:52:01 +0200
committerYorhel <git@yorhel.nl>2021-10-06 13:52:08 +0200
commit39a137c132db5dbaa1f04a10898a44a2ad073c17 (patch)
tree93c06045abe66d3e920430ae388ea28925aa3fbd
parent53d3e4c112a475ecbaae42cc1e58d42b986d76fc (diff)
Add reference to "man ncdu" in --help text
Not going to bloat the help output with all those settings...
-rw-r--r--src/main.zig41
1 files changed, 23 insertions, 18 deletions
diff --git a/src/main.zig b/src/main.zig
index 8c5cc45..bb26e84 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -286,24 +286,29 @@ fn version() noreturn {
fn help() noreturn {
std.io.getStdOut().writer().writeAll(
- "ncdu <options> <directory>\n\n"
- ++ " -h,--help This help message\n"
- ++ " -q Quiet mode, refresh interval 2 seconds\n"
- ++ " -v,-V,--version Print version\n"
- ++ " -x Same filesystem\n"
- ++ " -e Enable extended information\n"
- ++ " -r Read only\n"
- ++ " -o FILE Export scanned directory to FILE\n"
- ++ " -f FILE Import scanned directory from FILE\n"
- ++ " -0,-1,-2 UI to use when scanning (0=none,2=full ncurses)\n"
- ++ " --si Use base 10 (SI) prefixes instead of base 2\n"
- ++ " --exclude PATTERN Exclude files that match PATTERN\n"
- ++ " -X, --exclude-from FILE Exclude files that match any pattern in FILE\n"
- ++ " -L, --follow-symlinks Follow symbolic links (excluding directories)\n"
- ++ " --exclude-caches Exclude directories containing CACHEDIR.TAG\n"
- ++ " --exclude-kernfs Exclude Linux pseudo filesystems (procfs,sysfs,cgroup,...)\n"
- ++ " --confirm-quit Confirm quitting ncdu\n"
- ++ " --color SCHEME Set color scheme (off/dark/dark-bg)\n"
+ \\ncdu <options> <directory>
+ \\
+ \\Options:
+ \\ -h,--help This help message
+ \\ -q Quiet mode, refresh interval 2 seconds
+ \\ -v,-V,--version Print version
+ \\ -x Same filesystem
+ \\ -e Enable extended information
+ \\ -r Read only
+ \\ -o FILE Export scanned directory to FILE
+ \\ -f FILE Import scanned directory from FILE
+ \\ -0,-1,-2 UI to use when scanning (0=none,2=full ncurses)
+ \\ --si Use base 10 (SI) prefixes instead of base 2
+ \\ --exclude PATTERN Exclude files that match PATTERN
+ \\ -X, --exclude-from FILE Exclude files that match any pattern in FILE
+ \\ -L, --follow-symlinks Follow symbolic links (excluding directories)
+ \\ --exclude-caches Exclude directories containing CACHEDIR.TAG
+ \\ --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 {};
std.process.exit(0);
}