davetron5000 / gli

Make awesome command-line applications the easy way
http://davetron5000.github.io/gli
Apache License 2.0
1.26k stars 102 forks source link

required flags multiple handles empty array #327

Closed davetron5000 closed 1 month ago

davetron5000 commented 1 month ago

Problem

When a flag is multiple: true and required: true, GLI does not indicate when no flags are given on the command line.

Solution

Check that the value is an empty array in addition to the nil check

davetron5000 commented 1 month ago

CLoses #244

davetron5000 commented 1 month ago

Released in 2.21.3