Merge pull request #71 from ErrorNoInternet/short-options

feat: more short options
This commit is contained in:
Artturi 2024-01-29 20:39:40 +02:00 committed by GitHub
commit 9d8bcc369e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -162,10 +162,10 @@ struct Opt {
#[clap(short, long)]
shell: bool,
#[clap(long, env = "COMMA_PICKER", default_value = "fzy")]
#[clap(short = 'P', long, env = "COMMA_PICKER", default_value = "fzy")]
picker: String,
#[clap(long, env = "COMMA_NIXPKGS_FLAKE", default_value = "nixpkgs")]
#[clap(short = 'F', long, env = "COMMA_NIXPKGS_FLAKE", default_value = "nixpkgs")]
nixpkgs_flake: String,
/// DEPRECATED Update nix-index database
@ -173,7 +173,7 @@ struct Opt {
update: bool,
/// Print the package containing the executable
#[clap(long = "print-package")]
#[clap(short = 'p', long = "print-package")]
print_package: bool,
/// Command to run