feat: add aliases for new and build

This commit is contained in:
Edgar 2024-03-27 12:46:27 +01:00
parent 9b7cddd399
commit 4aa8b2078e
No known key found for this signature in database
GPG key ID: 70ADAE8F35904387

View file

@ -23,6 +23,7 @@ pub struct Cli {
#[derive(Subcommand, Debug)]
enum Commands {
/// Initialize a project
#[clap(alias = "n")]
New {
path: PathBuf,
@ -39,6 +40,7 @@ enum Commands {
lib: bool,
},
/// Build a project
#[clap(alias = "b")]
Build {
/// Build for release with all optimizations.
#[arg(short, long, default_value_t = false)]