-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
32f1c0a
commit c29433c
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,23 @@ | ||
# QuickArgParse | ||
Fast command line argument parsing in Julia. No bells and whistles. | ||
|
||
### Example | ||
All inputs except req are optional. | ||
|
||
```Julia | ||
req = ["Arg1","Arg2"] | ||
reqhelp = ["First Argument","Second Argument"] | ||
opts= ["opt1","opt2"] | ||
optsHelp = ["First optional argument","Second optional argument"] | ||
optsDefault = ["opt1 default","opt2 default"] | ||
flags = ["w"] | ||
flagHelp = ["a flag, true/false (default false)"] | ||
title = "Example usage statement" | ||
desc = "A demo version of a usage statement showing the code required to generate it" | ||
|
||
|
||
R = process_reqs(req;reqHelp=reqhelp,flags=flags,flagHelp=flagHelp,title=title,desc=desc, | ||
optTag=opts,optHelp=optsHelp,optDefault=optsDefault) | ||
build_usage!(R) | ||
A = parse_args(R) | ||
``` |