I'm trying to port seq
to structopt
, how should I support,
seq [OPTION]... LAST
seq [OPTION]... FIRST LAST
seq [OPTION]... FIRST INCREMENT LAST
Notice, that the position of the LAST
argument changes in the argument list, for completeness it would be nice to know BOTH,
- Whether or not
structopt
supports varying positional arguments that are contextual and if so how? - Whether or not
structopt
supports a position argument that is right-anchored and if so how?
I don't believe it's possible, and when I try I get a generated error:
This means that the required arguments must come first. The best I think you can do is declare your last argument to be a
Vec<Strings>