1
0
mirror of https://github.com/vxfemboy/ghostport.git synced 2025-11-23 21:34:41 +02:00
Files
ghostport/src/cli.rs

38 lines
921 B
Rust
Raw Normal View History

2023-07-27 05:19:52 +01:00
use clap::Parser;
#[derive(Parser, Debug, Clone)]
#[command(author = "perp and sad")]
2023-07-27 05:19:52 +01:00
// CLI flags/arguments
pub struct Cli {
#[arg(
2023-08-01 01:16:15 +01:00
short = 's',
long = "signatures",
2023-07-27 05:19:52 +01:00
value_name = "FILE",
2023-08-01 01:16:15 +01:00
help = "Path to the signatures",
default_value = "signatures"
2023-07-27 05:19:52 +01:00
)]
2023-08-01 01:16:15 +01:00
pub signatures: String,
2024-05-06 15:09:06 -06:00
#[arg(
short = 'l',
long = "listen",
value_name = "ADDRESS",
help = "Address to listen on",
default_value = "127.0.0.1:8888"
)]
pub listen: String,
2024-10-04 17:06:29 +00:00
#[arg(short = 'd', long = "debug", help = "Enable debug logging")]
2024-05-06 15:09:06 -06:00
pub debug: bool,
2024-10-04 17:06:29 +00:00
#[arg(short = 'v', long = "verbose", help = "Enable verbose logging")]
2024-05-06 15:09:06 -06:00
pub verbose: bool,
2024-10-04 17:06:29 +00:00
#[arg(short = 'q', long = "quiet", help = "Enable quiet logging")]
2024-05-06 15:09:06 -06:00
pub quiet: bool,
2024-10-04 17:06:29 +00:00
#[arg(short = 'V', long = "version", help = "Print version information")]
2024-05-06 15:09:06 -06:00
pub version: bool,
2023-07-27 05:19:52 +01:00
}