Skip to content

Commit

Permalink
stype: minor style changes
Browse files Browse the repository at this point in the history
  • Loading branch information
plusvic committed Mar 24, 2024
1 parent bc8e5a9 commit 8f4b0df
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions cli/src/commands/scan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use std::sync::Mutex;
use std::time::{Duration, Instant};

use anyhow::{bail, Context, Error};
use clap::{arg, value_parser, Arg, ArgAction, ArgMatches, Command};
use clap::{arg, value_parser, ArgAction, ArgMatches, Command};
use crossbeam::channel::Sender;
use superconsole::style::Stylize;
use superconsole::{Component, Line, Lines, Span};
Expand Down Expand Up @@ -34,11 +34,11 @@ pub fn scan() -> Command {
.value_parser(value_parser!(PathBuf))
)
.arg(
arg!(-e - -"print-namespace")
arg!(-e --"print-namespace")
.help("Print rule namespace")
)
.arg(
arg!(-s - -"print-strings")
arg!(-s --"print-strings")
.help("Print matching patterns, limited to the first 120 bytes")
)
.arg(
Expand All @@ -51,15 +51,15 @@ pub fn scan() -> Command {
.help("Disable printing console log messages")
)
.arg(
arg!(-n - -"negate")
arg!(-n --"negate")
.help("Print non-satisfied rules only")
)
.arg(
arg!(--"path-as-namespace")
.help("Use file path as rule namespace")
)
.arg(
arg!(-C - -"compiled-rules")
arg!(-C --"compiled-rules")
.help("Tells that RULES_PATH is a file with compiled rules")
.long_help(help::COMPILED_RULES_HELP)
)
Expand All @@ -82,9 +82,7 @@ pub fn scan() -> Command {
.value_parser(value_parser!(u64).range(1..))
)
.arg(
Arg::new("define")
.short('d')
.long("define")
arg!(-define --"define")
.help("Define external variable")
.long_help(help::DEFINE_LONG_HELP)
.required(false)
Expand Down

0 comments on commit 8f4b0df

Please sign in to comment.