Skip to content
This repository has been archived by the owner on Jan 19, 2023. It is now read-only.

volt1c/arguments-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🗃 arguments-parser

How to use

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") {
        ...
    }
}

About

Simple argument parser for rust applications.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages