client: bold --help ascii banner
All checks were successful
Build and test / check (push) Successful in 1m43s
Build and test / check-license (push) Successful in 1m47s
Build and test / build (push) Successful in 2m53s
Build and test / test (push) Successful in 3m5s
Build and test / docs (push) Successful in 6m43s

This commit is contained in:
2025-12-16 20:28:24 +09:00
parent dfe20826c1
commit 340428c158

View File

@@ -85,6 +85,7 @@ const EXAMPLES: &str = const_format::concatcp!(
"#,
);
const BEFORE_LONG_HELP: &str = const_format::concatcp!("\x1b[1m", ASCII_BANNER, "\x1b[0m");
const AFTER_LONG_HELP: &str = const_format::concatcp!(EXAMPLES, "\n", KIND_REGARDS,);
/// Database administration tool for non-admin users to manage their own MySQL databases and users.
@@ -101,7 +102,7 @@ const AFTER_LONG_HELP: &str = const_format::concatcp!(EXAMPLES, "\n", KIND_REGAR
about,
disable_help_subcommand = true,
propagate_version = true,
before_long_help = ASCII_BANNER,
before_long_help = BEFORE_LONG_HELP,
after_long_help = AFTER_LONG_HELP,
long_version = LONG_VERSION,
// NOTE: All non-registered "subcommands" are processed before Arg::parse() is called.