Skip to content

Commit

Permalink
Add short options for sort, search_providers and color (#226)
Browse files Browse the repository at this point in the history
Fixes #213.
  • Loading branch information
rnestler authored Nov 2, 2024
1 parent 162cb2e commit 33b05bd
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Added

* Short options for sort, search-providers and color

## [0.6.2] - 2024-08-15

### Changed
Expand Down
11 changes: 9 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,22 @@ pub enum ColorOptions {
)]
struct Args {
/// Sort results by the number of seeders or leechers.
#[clap(long, value_enum, ignore_case = true)]
#[clap(short, long, value_enum, ignore_case = true)]
sort: Option<SortMethods>,

/// Use the given search providers
#[clap(long, use_value_delimiter = true, value_enum, ignore_case = true)]
#[clap(
short = 'p',
long,
use_value_delimiter = true,
value_enum,
ignore_case = true
)]
search_providers: Vec<SearchProviderId>,

/// Control whether to use color
#[clap(
short,
long,
value_name = "WHEN",
value_enum,
Expand Down

0 comments on commit 33b05bd

Please sign in to comment.