Skip to content

Commit

Permalink
WIP not() function attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
neunenak committed Sep 27, 2024
1 parent bfaea9f commit 39dab45
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/attribute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ pub(crate) enum Attribute<'src> {
NoCd,
NoExitMessage,
NoQuiet,
Not(Box<Attribute<'src>>),
PositionalArguments,
Private,
Script(Option<Interpreter<'src>>),
Expand All @@ -29,7 +30,7 @@ impl AttributeDiscriminant {
fn argument_range(self) -> RangeInclusive<usize> {
match self {
Self::Confirm | Self::Doc => 0..=1,
Self::Group | Self::Extension => 1..=1,
Self::Group | Self::Extension | Self::Not => 1..=1,
Self::Linux
| Self::Macos
| Self::NoCd
Expand Down

0 comments on commit 39dab45

Please sign in to comment.