Questions tagged [argparse.jl]

ArgParse.jl is a package for parsing command-line arguments to Julia programs.

ArgParse is a package for parsing command-line arguments to Julia programs. Not to be confused with argparse, a similar module for Python.

4 questions
2
votes
0 answers

Declarative way to implement "computed default value" in ArgParse.jl

Is there any better way to specify a "computed default value" of a command-line argument that depends on other arguments in ArgParse.jl than simply check and set after parsing? Current straightforward "workaround" is like this: s =…
Alex Chichigin
  • 121
  • 1
  • 4
2
votes
1 answer

Parameter file in ArgParse.jl?

Python's argparse has a simple way to read parameters from a file: https://docs.python.org/2/library/argparse.html#fromfile-prefix-chars Instead of passing your arguments one by one: python script.py --arg1 val1 --arg2 val2 ... You can say: python…
a06e
  • 18,594
  • 33
  • 93
  • 169
1
vote
1 answer

What is the correct way to pass arguments by terminal in julia using argparse?

I want to pass arguments using argparse in julia, but I'm having problems. using ArgParse function parse_commandline(args) s = ArgParseSettings() @add_arg_table s begin "--hour" help = "value in hour" arg_type = Float64 …
Fredifqh
  • 87
  • 2
  • 2
  • 10
1
vote
1 answer

Check if ArgParse optional argument is set or not (in Julia)

This is essentially the same question as: Check if argparse optional argument is set or not, but in Julia, using Julia's ArgParse module. Given an argument that takes a value, I want to know if its value was given or not.
a06e
  • 18,594
  • 33
  • 93
  • 169