basic cli usage
This commit is contained in:
parent
a12af938ba
commit
17e2776ef7
4 changed files with 1707 additions and 2 deletions
1
.direnv/nix-profile-.3389.9cac4585028
Symbolic link
1
.direnv/nix-profile-.3389.9cac4585028
Symbolic link
|
@ -0,0 +1 @@
|
|||
/nix/store/qrxpcn4y4gfjv21rqring53sii49hysj-nix-shell-env
|
1693
.direnv/nix-profile-.3389.9cac4585028.rc
Normal file
1693
.direnv/nix-profile-.3389.9cac4585028.rc
Normal file
File diff suppressed because it is too large
Load diff
1
.envrc
Normal file
1
.envrc
Normal file
|
@ -0,0 +1 @@
|
|||
use nix
|
14
src/main.rs
14
src/main.rs
|
@ -1,5 +1,15 @@
|
|||
use clap::Parser;
|
||||
|
||||
fn main() {
|
||||
println!("Hello, world!");
|
||||
#[derive(Parser, Debug)]
|
||||
#[command(author, version, about, long_about=None)]
|
||||
struct Cli {
|
||||
#[arg(short, long)]
|
||||
configuration_file: Option<String>,
|
||||
}
|
||||
|
||||
fn main() {
|
||||
let cli = Cli::parse();
|
||||
|
||||
println!("Hello, world!");
|
||||
println!("{:?}", cli);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue