gandi-live-dns-rust/src/opts.rs

21 lines
669 B
Rust
Raw Normal View History

use clap::Parser;
2021-12-12 03:32:05 -06:00
/// A tool to automatically update DNS entries on Gandi, using it as a dynamic DNS system.
#[derive(Parser, Debug, Default)]
#[clap(author, version, about, long_about = None, name = "gandi-live-dns")]
2021-12-12 03:32:05 -06:00
pub struct Opts {
/// The path to the configuration file.
#[clap(long)]
2021-12-12 03:32:05 -06:00
pub config: Option<String>,
/// Skip IPv4 updates.
///
/// If enabled, any IPv4 (A) records in the configuration file are ignored.
#[clap(action, long)]
pub skip_ipv4: bool,
/// Skip IPv4 updates.
///
/// If enabled, any IPv6 (AAAA) records in the configuration file are ignored.
#[clap(action, long)]
pub skip_ipv6: bool,
2021-12-12 03:32:05 -06:00
}