CommandArgs
Minimal, precise library for primarily fetching and sorting runtime command line arguments accordingly.
For each command line argument will be rawly read, based on a user-specified command pattern
it will check if it was expected, then it will ensure that n
(user-defined) amount of
arguments will be read (order between arguments and options is arbitrary), at the same time
it will also be reading options based on user-specified set of option patterns.
Example
use crate::;
Result (the -- is required to prevent further options from passing into cargo):
$ cargo run -- greet NotFlawffles -method hi -also-greet "John Doe"
hi NotFlawffles!
and hi John Doe!
Limitations (for now, will be resolved very soon)
- No support for (--) for options, only a generic (-) that works for any length.