mirror of
https://github.com/callumio/nish.git
synced 2025-12-18 03:59:19 +00:00
feat: make packages argument required
This commit is contained in:
parent
21ee9030ee
commit
15f9bff56b
2 changed files with 3 additions and 1 deletions
|
|
@ -1,7 +1,9 @@
|
||||||
[package]
|
[package]
|
||||||
name = "nish"
|
name = "nish"
|
||||||
|
description = "Jump into flake-based nix shells with ease"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
license = "MIT"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
clap = { version = "4.5.17", features = ["derive"] }
|
clap = { version = "4.5.17", features = ["derive"] }
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ struct Args {
|
||||||
/// <package> to implicitly use nixpkgs
|
/// <package> to implicitly use nixpkgs
|
||||||
///
|
///
|
||||||
/// <flake#package> to use a different flake
|
/// <flake#package> to use a different flake
|
||||||
#[arg(value_parser = preprocess)]
|
#[arg(value_parser = preprocess, required = true)]
|
||||||
pkgs: Vec<Installable>,
|
pkgs: Vec<Installable>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue