Argparse4j is a command line argument parser library for Java based on Python's argparse module.
Questions tagged [argparse4j]
3 questions
3
votes
1 answer
Setting a flag using a command-line argument with Argparse4j
I am using argparse4j to parse command line arguments. I want to add an argument that when present, sets a boolean to true, otherwise it defaults to false. I don't want to include the true or false in the argument, just the identifier, so it would…

yellavon
- 2,821
- 12
- 52
- 66
1
vote
2 answers
Accept Duration parameter as command line argument in java
I want to accept a input with java.time.Duration data type in java using net.sourceforge.argparse4j.ArgumentParsers . However since Duration is a non-primitive data type, it is not directly supported to be passed as one of the argument. Is there any…

Tarishi Jain
- 254
- 3
- 13
0
votes
0 answers
How to make argument dependable on one another in argeparse python?
I am trying to make conditional argument parsing. The condition is as follows :
First argument is required and here user has two options to enter for instance "random" and "collection". User can enter random or collection as first argument.
-> IF…

user9113784
- 68
- 5