I'm playing with yargs as would like to configure the following command line options:
Usage: myapp <source file> [destination file]
No options, no commamnds, etc. Just takes a file path to read from and an optional one to write to. What's the yarg config that gets me that and gives me all the nice documentation?
Seems like I either need to use an option or a command. Can't I just pass in the file argument on its own?
Couldn't see how to do this with commander either. Trying to trade up from process.argv
, but stuck at the first hurdle.