Skip to content

Commit 7c4eebb

Browse files
committed
feat: disable -h short help flag and add long-only --help option
1 parent 572affb commit 7c4eebb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,12 @@ impl Command {
5656
/// Supports basic shapes and materials and .obj models.
5757
/// Can render single images and animations.
5858
#[derive(Parser, Debug)]
59-
#[command(about, long_about = None)]
59+
#[command(about, long_about = None, disable_help_flag = true)]
6060
struct Cli {
61+
/// Print help information
62+
#[arg(long = "help", action = clap::ArgAction::Help)]
63+
help: Option<bool>,
64+
6165
#[command(subcommand)]
6266
command: Command,
6367

0 commit comments

Comments
 (0)