Open mmillsAtREPAY opened 3 years ago
I've changed employer and don't have access to those changes anymore unfortunately @mmillsAtREPAY
If I recall correctly (having re-read https://github.com/gsscoder/commandline/issues/310), I came up with a small fix by debugging locally. It should be fairly simple to reproduce.
I've got a
CLIOptions
class that takes anIClock
instance as a constructor parameter, so I'm using theParseArguments
overload that accepts aFunc<CLIOptions>
to initialize the instance that gets populated.I'd like to be able to subclass
CLIOptions
in order to build out a set of verbs, so I was looking for a way to use a factory with multiple verbs (the subclasses would need to receive the same constructor arguments). I didn't see anything obvious in theParser
class, but I stumbled across the quoted comment in https://github.com/commandlineparser/commandline/issues/70.However, at this time https://github.com/Emergensys/commandline/commit/2ebe156199f8bad3c0155c8c415e3363949941ff is no longer available (or not public). I also wasn't able to find anything that I thought might be the PR @JeanSebTr is referring to in this repository.
Is multi-verb parsing with a factory a supported scenario?