all kinds of different language scripts
This commit is contained in:
parent
5400f80b55
commit
2a76649221
8 changed files with 143 additions and 1 deletions
19
scripts/rusty.rs
Executable file
19
scripts/rusty.rs
Executable file
|
@ -0,0 +1,19 @@
|
|||
#!/usr/bin/env -S nix shell "github:nix-community/fenix?rev=092bd452904e749efa39907aa4a20a42678ac31e#minimal.toolchain" -c cargo -q -Zscript
|
||||
```cargo
|
||||
[dependencies]
|
||||
clap = { version = "4.2", features = ["derive"] }
|
||||
```
|
||||
|
||||
use clap::Parser;
|
||||
|
||||
#[derive(Parser, Debug)]
|
||||
#[clap(version)]
|
||||
struct Args {
|
||||
#[clap(short, long, help = "Path to config")]
|
||||
config: Option<std::path::PathBuf>,
|
||||
}
|
||||
|
||||
fn main() {
|
||||
let args = Args::parse();
|
||||
println!("{:?}", args);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue