Relative Content

Tag Archive for c++arguments

How to use multiple positional args with argparse

I am writing a program that expects 2 required positional args. First argument has a limited set of string values. Second argument can be any string without restrictions. Program is meant to use second arg in different ways depending on selected action in first argument. For argument parsing, I use argparse/3.0.