-
Hi! I have recently learnt Rust and used it with clap to write a simple program (an Ising model simulator, for those who know). I have used the Derive method to declare my CLI options and one of these options ( I'd like to be able to just pass I have tried different things but couldn't find a way to make it work, what should I do? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Your flag is defined as /// Use the symmetry breaking boundary conditions
#[arg(long)]
symmetry_breaking: Option<bool>, to get it to to not accept a value, you need to change it to /// Use the symmetry breaking boundary conditions
#[arg(long)]
symmetry_breaking: bool, See also |
Beta Was this translation helpful? Give feedback.
Your flag is defined as
to get it to to not accept a value, you need to change it to
See also