use std::env;
use args::Args;
fn main() {
// i# - type i32
// s* - type &str
// b - type bool
let arg = Args::new("i#,s*,b", env::args());
if arg.get_i32("i") == 1 {
...
}
if arg.get_str("s") == "..." {
...
}
if arg.get_bool("b") {
...
}
}
This repository has been archived by the owner on Jan 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Simple argument parser for rust applications.
License
volt1c/arguments-parser
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Simple argument parser for rust applications.
Topics
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published