This repository has been archived by the owner on Jan 1, 2022. It is now read-only.
clap_derive: support tuples as shortcut for number_of_values = N, different validators #141
Labels
Milestone
Issue by CreepySkeleton
Monday Mar 02, 2020 at 17:44 GMT
Originally opened as clap-rs/clap#1717
Transferred from: TeXitoi/structopt#349
Sometimes we want to to take a fixed number of values that should always be passed together or not at all. For instance, let's take RGBA: four numbers, first three must be
0 <= N <= 255
, the last must be0 <= N <= 1.0
. This can be naturally expressed via tuples:The text was updated successfully, but these errors were encountered: