diff --git a/apps/designcraft-cli/src/main.rs b/apps/designcraft-cli/src/main.rs index 32faeda04..2882ef059 100644 --- a/apps/designcraft-cli/src/main.rs +++ b/apps/designcraft-cli/src/main.rs @@ -124,8 +124,6 @@ fn can_be_value(v: &str) -> bool { !(v.starts_with('-') && v.len() > 1 && v.parse::().is_err()) } -/// The usage lines for one subcommand, for ` --help`. Each line of [`USAGE`] names its -/// subcommand, and the indented lines after it belong to it. /// Whether `sub` is a subcommand [`USAGE`] lists. Read from the usage text rather than written /// out again, so a subcommand added there cannot be missing here. fn is_subcommand(sub: &str) -> bool { @@ -141,6 +139,8 @@ fn usage_subcommand(line: &str) -> Option<&str> { .and_then(|rest| rest.split_whitespace().next()) } +/// The usage lines for one subcommand, for ` --help`. Each line of [`USAGE`] names its +/// subcommand, and the indented lines after it belong to it. fn usage_for(sub: &str) -> String { let mut out = Vec::new(); let mut keep = false;