Skip to content

Commit

Permalink
reorganize codes
Browse files Browse the repository at this point in the history
  • Loading branch information
mazznoer committed Aug 11, 2024
1 parent df1b132 commit 6ca685d
Show file tree
Hide file tree
Showing 4 changed files with 412 additions and 421 deletions.
6 changes: 6 additions & 0 deletions src/cli.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use clap::{Parser, ValueEnum};
use std::path;

#[derive(Debug, Clone, ValueEnum)]
pub enum Gradient {
Expand All @@ -19,7 +20,12 @@ pub enum Gradient {
}

#[derive(Clone, Debug, Parser)]
#[command(name = "lolcrab", version, about)]
pub struct Opt {
/// Files to read
#[arg(name = "File", default_value = "-", value_parser = clap::value_parser!(path::PathBuf))]
pub files: Vec<path::PathBuf>,

/// Sets color gradient
#[arg(
short,
Expand Down
Loading

0 comments on commit 6ca685d

Please sign in to comment.