3 releases

0.1.2 Jan 22, 2022
0.1.1 Jan 22, 2022
0.1.0 Jan 22, 2022

#446 in Cargo plugins

Download history 1/week @ 2024-02-14 13/week @ 2024-02-21 16/week @ 2024-02-28 2/week @ 2024-03-06 3/week @ 2024-03-13 21/week @ 2024-03-27 43/week @ 2024-04-03

64 downloads per month
Used in 2 crates (via istor)

MIT license

5KB
89 lines

minparse

A minimal argument parser

Install

Add this to your Cargo.toml:

[dependencies]
minparse = "0.1.2"

Usage

use minparse::minparse;

minparse::process_name();
// => Get process name <String>
minparse::switches();
// => Get options that do not require a value (e.g --help) Vec<String>
minparse::subcommands();
// => Subcommands (do not have prefixed `--`. Includes process name) Vec<String> example: vec!["cargo", "run"] 
minparse::fields()
// => Fields with a value (e.g. --port 8080) HashMap<String, String> 

Donate

# Wallets to which you can donate :)

  BTC = "3NC14JNuzdLkxJTdNa6bnFXaYzMKMc1Uwt"
  ETH = "0xc41c0f847d58121f552c683e454ddafeb415f25e"
  XMR = "875smxvwbP64MFZnHrHwHcGahoEB4a5ARGCBidr95LqL4GEPiB4T8J74UB5TzrXK3wbTZ1iidfYoV37KZq1vqWCQSNztDAF"  

No runtime deps