summaryrefslogtreecommitdiff
path: root/cli/main.rs
diff options
context:
space:
mode:
authorLuca Casonato <hello@lcas.dev>2024-08-19 00:39:53 +0200
committerGitHub <noreply@github.com>2024-08-18 15:39:53 -0700
commit9bc2dd29ad6ba334fd57a20114e367d3c04763d4 (patch)
tree4de8b2750eb7b56656a1f601339ca3172b168eb1 /cli/main.rs
parent1ec12a8c5dc95b88d136b1a8faa380be70ee7ced (diff)
fix: clean up flag help output (#24686)
Permission flags are unified in a clearer and concise output. Unstable flags are hidden by default with exception of the `unstable` flag itself. the remaining unstable flags can be seen with a `--help=unstable`. This also cleans up to show unstable flags only for subcommands that actually need them. Also sorts flags alphabetically, and gorups various flags together in a set of categories. --------- Co-authored-by: crowlkats <crowlkats@toaxl.com>
Diffstat (limited to 'cli/main.rs')
-rw-r--r--cli/main.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/cli/main.rs b/cli/main.rs
index 9b141c536..aafa7f009 100644
--- a/cli/main.rs
+++ b/cli/main.rs
@@ -402,8 +402,7 @@ fn resolve_flags_and_init(
let flags = match flags_from_vec(args) {
Ok(flags) => flags,
Err(err @ clap::Error { .. })
- if err.kind() == clap::error::ErrorKind::DisplayHelp
- || err.kind() == clap::error::ErrorKind::DisplayVersion =>
+ if err.kind() == clap::error::ErrorKind::DisplayVersion =>
{
// Ignore results to avoid BrokenPipe errors.
let _ = err.print();