rs-args 0.3.0

A simple command line argument parser for Rust
Documentation

Image


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

  1. Add rs-args as a dependeny
rs-args = "<latest version>"

Usage

Now that you installed rs-args in your cargo project, you have access to the CommandArguments struct. This is the main struct of the project, and it allows you to automatically parse arguments.

You can call

CommandArguments::default_new();

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

CommandArgument::from_input("");

to input your own arguments, which you may have retrieved from the user.