Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
147 changes: 141 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ debug = true
chrono = "0.4.40"
clap = { version = "4.5.34", features = ["derive"] }
colored = "3.0.0"
crossterm = "0.28.1"
itertools = "0.14.0"
minreq = { version = "2.13.3", features = ["punycode", "https"] }
rayon = "1.10.0"
Expand Down
8 changes: 4 additions & 4 deletions src/cli.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use clap::Parser;
use clap::Subcommand;

#[derive(Parser)]
#[derive(Parser, Clone, Debug)]
#[command(version, about, long_about = None)]
pub struct Cli {
/// Subject to find
Expand Down Expand Up @@ -32,12 +32,12 @@ pub struct Cli {
pub find: Option<String>,

/// Describes how many positions to show for the individual results
/// Defaults to 25, with 0 being all teams
/// Defaults to 0, which shows all positions
#[arg(short, long, value_name = "INDIVIDUAL POSITIONS")]
pub individual_positions: Option<usize>,

/// Describes how many positions to show for the team results
/// Defaults to 25, with 0 being all teams
/// Defaults to 0, which shows all positions
#[arg(short, long, value_name = "TEAM POSITIONS")]
pub team_positions: Option<usize>,

Expand All @@ -53,7 +53,7 @@ pub struct Cli {
pub command: Option<Commands>,
}

#[derive(Subcommand, Clone)]
#[derive(Subcommand, Clone, Debug)]
pub enum Commands {
Compare {
/// Compares two individuals in a subject
Expand Down
Loading