Skip to content

Instantly share code, notes, and snippets.

@jkotra
Created October 7, 2019 07:08
Show Gist options
  • Select an option

  • Save jkotra/0bc58ec56f96d7939a2fbc5656d6a206 to your computer and use it in GitHub Desktop.

Select an option

Save jkotra/0bc58ec56f96d7939a2fbc5656d6a206 to your computer and use it in GitHub Desktop.
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