5 ms·
Great stuff! Does anything like Cobra exist for Java?
by Thorentis 6y ago
Great stuff! Does anything like Cobra exist for Java?
- bingo_cannon 6y agoAbsolutely! I've used picocli[1] and airline[2]. There is always the Apache Commons CLI if you feel like building it all yourself. 1: https://picocli.info/ https://picocli.info/ 2: https://github.com/airlift/airline https://github.com/airlift/airline Bonus: picocli lets you create native images using Graal, so you can really build native cli executable using Java.
- pansa2 6y agoSame question, but for C++? I’ve struggled to find a well-supported command-line argument parser that supports subcommands.
- brown9-2 6y agoargparse4j is really easy to use and feels similar to argparse in Python.