20 lines
459 B
Rust
Executable file
20 lines
459 B
Rust
Executable file
#!/usr/bin/env -S nix shell "github:nix-community/fenix?rev=092bd452904e749efa39907aa4a20a42678ac31e#minimal.toolchain" -c cargo -q -Zscript
|
|
```cargo
|
|
[dependencies]
|
|
clap = { version = "4.7", features = ["derive"] }
|
|
```
|
|
|
|
use clap::Parser;
|
|
|
|
#[derive(Parser, Debug)]
|
|
#[clap(version)]
|
|
struct Args {
|
|
#[clap(short, long, help = "Path to config")]
|
|
video: Option<std::path::PathBuf>,
|
|
}
|
|
|
|
fn main() {
|
|
let args = Args::parse();
|
|
println!("{:?}", args);
|
|
}
|