summaryrefslogtreecommitdiff
path: root/src/args.rs
AgeCommit message (Collapse)Author
2024-04-25clippy: Follow most recommendationsJoel Klinghed
It also tried to replace while let Some(arg) = args.next() { with: for arg in args.by_ref() { but that doesn't work on trait objects.
2024-04-25args: Borrow string when printing itJoel Klinghed
Seems like a better default, unsure if it made any difference here tho.
2024-04-25args: Add testsJoel Klinghed
Also minor fix in LongOnlyParser, support "-" as argument.
2024-04-24Detect arg parser to useJoel Klinghed
Switch Parser trait to an object safe trait so guess_parser can return an boxed instance.
2024-04-24args: Fix order in LongOnlyParser#print_helpJoel Klinghed
Use options for iter as the order is stable (not true for long hash map)
2024-04-24Format with rustfmtJoel Klinghed
2024-04-24args: Argument parserJoel Klinghed
Still getting used to rust