client: add example for display subcommand help
All checks were successful
Build and test / check-license (push) Successful in 59s
Build and test / build (push) Successful in 2m37s
Build and test / check (push) Successful in 2m46s
Build and test / test (push) Successful in 3m31s
Build and test / docs (push) Successful in 5m15s

This commit is contained in:
2025-12-16 14:28:30 +09:00
parent 15c8d82373
commit 256c1d1176

View File

@@ -62,9 +62,12 @@ const fn long_version() -> &'static str {
const LONG_VERSION: &str = long_version();
const EXAMPLES: &str = color_print::cstr!(
const EXAMPLES: &str = const_format::concatcp!(
color_print::cstr!("<bold><underline>Examples:</underline></bold>"),
r#"
<bold><underline>Examples:</underline></bold>
# Display help information for any specific command
muscl <command> --help
# Create two users 'alice_user1' and 'alice_user2'
muscl create-user alice_user1 alice_user2
@@ -79,7 +82,7 @@ const EXAMPLES: &str = color_print::cstr!(
# Show which users have privileges on which databases
muscl show-privs
"#
"#,
);
const AFTER_LONG_HELP: &str = const_format::concatcp!(EXAMPLES, "\n", KIND_REGARDS,);