Skip to content

Commit

Permalink
fix: Broken signal commandline handler
Browse files Browse the repository at this point in the history
  • Loading branch information
Nukesor committed Feb 12, 2025
1 parent eacaf95 commit c5abcca
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions pueue/src/client/cli.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
use std::path::PathBuf;

use chrono::{prelude::*, TimeDelta};
use clap::{builder::PossibleValuesParser, ArgAction, Parser, ValueEnum, ValueHint};
use clap::{ArgAction, Parser, ValueEnum, ValueHint};
use interim::*;
use pueue_lib::network::message::Signal;
use strum::VariantNames;

use crate::client::commands::WaitTargetStatus;

Expand Down Expand Up @@ -287,9 +286,7 @@ pub enum SubCommand {
///
/// This argument also excepts the integer representation as well as the signal
/// short name. E.g. `sigint`, `int`, or `2` are the same.
#[arg(short, long, ignore_case(true), value_parser = PossibleValuesParser::new(
Signal::VARIANTS
))]
#[arg(short, long, ignore_case(true))]
signal: Option<Signal>,
},

Expand Down

0 comments on commit c5abcca

Please sign in to comment.