Skip to content

Commit

Permalink
Add -n short alias for --length
Browse files Browse the repository at this point in the history
  • Loading branch information
KiitoX committed Jun 13, 2024
1 parent 4cca845 commit d676e89
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cli/src/commands/log.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ pub(crate) struct LogArgs {
/// Limit number of revisions to show
///
/// Applied after revisions are filtered and reordered.
#[arg(long, short)]
#[arg(long, short = 'n', visible_short_alias = 'l')]
limit: Option<usize>,
/// Don't show the graph, show a flat list of revisions
#[arg(long)]
Expand Down
2 changes: 1 addition & 1 deletion cli/src/commands/obslog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ pub(crate) struct ObslogArgs {
#[arg(long, short, default_value = "@")]
revision: RevisionArg,
/// Limit number of revisions to show
#[arg(long, short)]
#[arg(long, short = 'n', visible_short_alias = 'l')]
limit: Option<usize>,
/// Don't show the graph, show a flat list of revisions
#[arg(long)]
Expand Down
2 changes: 1 addition & 1 deletion cli/src/commands/operation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ pub enum OperationCommand {
#[derive(clap::Args, Clone, Debug)]
pub struct OperationLogArgs {
/// Limit number of operations to show
#[arg(long, short)]
#[arg(long, short = 'n', visible_short_alias = 'l')]
limit: Option<usize>,
/// Don't show the graph, show a flat list of operations
#[arg(long)]
Expand Down

0 comments on commit d676e89

Please sign in to comment.