You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
412 B
17 lines
412 B
use super::defaults; |
|
use clap::Parser; |
|
use std::path::PathBuf; |
|
|
|
#[derive(Parser, Debug)] |
|
#[command(author, version, about)] |
|
pub struct Args { |
|
/// Path to config file |
|
#[arg(short, long, default_value = "config.toml")] |
|
pub config: PathBuf, |
|
|
|
#[arg(short, long, help = defaults::HELP_PORT)] |
|
pub port: Option<u16>, |
|
|
|
#[arg(long, help = defaults::HELP_LOG)] |
|
pub log_level: Option<String>, |
|
}
|
|
|