rs-args

Crates.iors-args
lib.rsrs-args
version0.3.1
sourcesrc
created_at2023-12-28 21:50:16.266
updated_at2023-12-30 11:26:19.100363
descriptionA simple command line argument parser for Rust
homepage
repositoryhttps://gihub.com/mt4f/rs-args
max_upload_size
id1082703
size23,819
Matrix4f (mt4f)

documentation

README

rs-args

Static Badge


Overview

A simple, easy to use command argument parser for Rust.

Installation

  1. Initialise a cargo project ( you can skip this if you already have one )
cargo init
Createdbinary (application) package
  1. Add rs-args as a dependency
rs-args = "<latest version>"

Usage

Now that you installed rs-args in your cargo project, you have access to the rs_args module. This allows you to automatically parse arguments.

You can call

let args = rs_args::parse_arguments();

to retrieve the program arguments and parse them automaticaly, or you can call

rs_args::get_named(...) 
// or
rs_args::get_positional(...)
// etc.

to directly retrieve the argument values.

Commit count: 0

cargo fmt