Skip to content

Commit

Permalink
Add a note about mutually exclusive boolean flags.
Browse files Browse the repository at this point in the history
When clap-rs/clap#2621 is resolved, we will be
able to derive a set of mutually exclusive boolean flags from an enum
in a struct that derives clap::Parser.
  • Loading branch information
c3potheds committed May 18, 2024
1 parent 146bf05 commit 7f45736
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions builtin_apps/src/get.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ pub fn run<'list>(list: &'list TodoList, cmd: &Get) -> PrintableResult<'list> {
// By default, show all context.
(false, false, false) => (true, true),
// Any other combination is invalid.
// TODO: we will be able to avoid this unreachable!() once
// https://github.com/clap-rs/clap/issues/2621 is resolved.
_ => unreachable!(),
};
let tasks_to_print = requested_tasks
Expand Down

0 comments on commit 7f45736

Please sign in to comment.