gandi-live-dns-rust/src/opts.rs
Kaan Barmore-Genç 4032fbe7ff update dependencies & switch to clap
`structopt` is maintanence-only, and `clap` seems to be the successor.
2022-04-03 21:27:45 -04:00

12 lines
337 B
Rust

use clap::{Parser, ArgEnum};
/// A tool to automatically update DNS entries on Gandi, using it as a dynamic DNS system.
#[derive(Parser, Debug)]
#[clap(author, version, about, long_about = None, name = "gandi-live-dns")]
pub struct Opts {
/// The path to the configuration file.
#[clap(long)]
pub config: Option<String>,
}