Skip to content

Add an optional flag in Derive mode #5790

Closed Answered by epage
tchaumeny asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tchaumeny
Comment options

Answer selected by tchaumeny
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants