Fix completions for utils and add description

This commit is contained in:
2026-03-22 21:22:03 -05:00
parent c13d6e54ee
commit 2f7cc9c150
2 changed files with 3 additions and 1 deletions

View File

@@ -2,6 +2,7 @@
name = "pallet" name = "pallet"
version = "1.0.3" version = "1.0.3"
edition = "2024" edition = "2024"
description = "A project manager and build system for C inspired by Rust's Cargo"
[dependencies] [dependencies]
clap = { version = "4.6.0", features = ["derive"] } clap = { version = "4.6.0", features = ["derive"] }

View File

@@ -12,7 +12,7 @@ const MAIN_C: &str = include_str!("templates/main.c");
const GITIGNORE: &str = "target/"; const GITIGNORE: &str = "target/";
#[derive(clap::Parser)] #[derive(clap::Parser)]
#[clap(version)] #[clap(version, about)]
pub struct App { pub struct App {
#[clap(subcommand)] #[clap(subcommand)]
command: Subcommand, command: Subcommand,
@@ -54,6 +54,7 @@ enum UtilSubcommand {
/// Generate shell completions /// Generate shell completions
Completions { Completions {
/// The shell to generate completions for /// The shell to generate completions for
#[arg(value_enum, long, short)]
shell: ShellCompletions, shell: ShellCompletions,
}, },
} }