FluentArgs
FluentArgs copied to clipboard
Document "Given.Flag"
If a "given flag" check is done inside a definition it is not possible to document this piece of code and therefore there is no help available. Example:
FluentArgsBuilder.New()
.DefaultConfigsWithAppDescription("This tool can be used to query minimum daily prices from skyscanner.")
.Given.Flag("-a", "--airports").Then(ListAirports)
.Parameter<Airport>("-o", "--origin")
.WithDescription("origin airport.")
.WithExamples(Airport.ZRH, Airport.HKG)
.IsRequired()
.Parameter<Airport>("-d", "--destination")
.WithDescription("Destination airport.")
.WithExamples(Airport.ZRH, Airport.HKG)
.IsRequired()
.Parameter<DateTimeOffset>("-t", "--date")
.WithDescription("Flight date.")
.IsRequired()
The "help"-page should contain the -a
flag.