Created
October 7, 2019 07:08
-
-
Save jkotra/0bc58ec56f96d7939a2fbc5656d6a206 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| using ArgParse | |
| function parse_commandline_args() | |
| s = ArgParseSettings() | |
| @add_arg_table s begin | |
| "--switch" | |
| help = "to SWITCH or NOT" | |
| action = :store_true | |
| "--simulations" | |
| help = "N no of simulations" | |
| required = true | |
| arg_type = Int64 | |
| end | |
| return parse_args(s) | |
| end | |
| parsed_args = parse_commandline_args() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment