Skip to content

Commit

Permalink
cli: remove unnecessary (?) ArgAction::Append in $[clap]
Browse files Browse the repository at this point in the history
I think "append" is the default for `Vec`-type fields.
  • Loading branch information
martinvonz committed Dec 19, 2022
1 parent dac80ef commit a2d2da4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ use std::{fs, io};

use chrono::{FixedOffset, LocalResult, TimeZone, Utc};
use clap::builder::NonEmptyStringValueParser;
use clap::{ArgAction, ArgGroup, ArgMatches, CommandFactory, FromArgMatches, Subcommand};
use clap::{ArgGroup, ArgMatches, CommandFactory, FromArgMatches, Subcommand};
use itertools::Itertools;
use jujutsu_lib::backend::{CommitId, Timestamp, TreeValue};
use jujutsu_lib::commit::Commit;
Expand Down Expand Up @@ -715,7 +715,7 @@ enum BranchSubcommand {
names: Vec<String>,

/// A glob pattern indicating branches to forget.
#[arg(action(ArgAction::Append), long = "glob")]
#[arg(long)]
glob: Vec<String>,
},

Expand Down

0 comments on commit a2d2da4

Please sign in to comment.