minparse 0.1.2

A minimalist argument parser
Documentation
  • Coverage
  • 0%
    0 out of 6 items documented0 out of 4 items with examples
  • Size
  • Source code size: 7.33 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 258.56 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 8s Average build duration of successful builds.
  • all releases: 8s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Octalbyte/minparse
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Octalbyte

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"