type ShowArgs =
// Can't make this non-mandatory
| [<First;Unique;MainCommand>]Args of filter : string
with interface IArgParserTemplate with member this.Usage = ""
type XPasswdArgs =
| [<First;ExactlyOnce;MainCommand>]Database of database : string
| [<CliPrefix(CliPrefix.None)>] Show of ParseResults<ShowArgs>
Repro steps
xpasswd database show filter (works)
xpasswd database show (missing argument "filter", despite not being mandatory)
Expected behavior
Please provide a description of the behavior you expect.
Actual behavior
Non-mandatory subcommand main command should be optional
Description
Repro steps
xpasswd database show filter (works)
xpasswd database show (missing argument "filter", despite not being mandatory)
Expected behavior
Please provide a description of the behavior you expect.
Actual behavior
Non-mandatory subcommand main command should be optional
Known workarounds
None
Related information