basic cli usage

This commit is contained in:
Nickiel12 2022-12-09 14:11:43 -08:00
parent a12af938ba
commit 17e2776ef7
4 changed files with 1707 additions and 2 deletions

View file

@ -0,0 +1 @@
/nix/store/qrxpcn4y4gfjv21rqring53sii49hysj-nix-shell-env

File diff suppressed because it is too large Load diff

1
.envrc Normal file
View file

@ -0,0 +1 @@
use nix

View file

@ -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);
}