forked from Cutieguwu/raven
Fix some issues with clap using the cli crate's versioning.
This commit is contained in:
@@ -6,8 +6,7 @@ use clap::{ArgAction, Args, Parser, Subcommand, ValueEnum};
|
||||
pub static CLI_ARGS: LazyLock<CliArgs> = LazyLock::new(|| CliArgs::parse());
|
||||
|
||||
#[derive(Debug, Parser)]
|
||||
#[clap(author, version)]
|
||||
#[command(help_template = "{author-section}\n{usage-heading} {usage}\n\n{all-args}")]
|
||||
#[clap(name = "Raven", version = "0.2.0")]
|
||||
pub struct CliArgs {
|
||||
#[command(subcommand)]
|
||||
pub command: Command,
|
||||
|
||||
Reference in New Issue
Block a user