Skip to content

Commit 7db11bd

Browse files
authored
Update README.md
1 parent 925b33f commit 7db11bd

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,24 @@
11
# minparse
22
A minimal argument parser
3+
## Usage
4+
5+
```rust
6+
use minparse::minparse;
7+
8+
minparse::process_name();
9+
// => Get process name <String>
10+
minparse::switches();
11+
// => Get options that do not require a value (e.g --help) Vec<String>
12+
minparse::subcommands();
13+
// => Subcommands (do not have prefixed `--`. Includes process name) Vec<String> example: vec!["cargo", "run"]
14+
minparse::fields()
15+
// => Fields with a value (e.g. --port 8080) HashMap<String, String>
16+
```
17+
## Donate
18+
```toml
19+
# Wallets to which you can donate :)
20+
21+
BTC = "3NC14JNuzdLkxJTdNa6bnFXaYzMKMc1Uwt"
22+
ETH = "0xc41c0f847d58121f552c683e454ddafeb415f25e"
23+
XMR = "875smxvwbP64MFZnHrHwHcGahoEB4a5ARGCBidr95LqL4GEPiB4T8J74UB5TzrXK3wbTZ1iidfYoV37KZq1vqWCQSNztDAF"
24+
```

0 commit comments

Comments
 (0)