gandi-live-dns-rust/src/opts.rs
2021-12-12 04:32:05 -05:00

15 lines
413 B
Rust

use structopt::StructOpt;
/// A tool to automatically update DNS entries on Gandi, using it as a dynamic DNS system.
#[derive(StructOpt, Debug)]
#[structopt(name = "gandi-dynamic-dns")]
pub struct Opts {
/// The path to the configuration file.
#[structopt(long)]
pub config: Option<String>,
/// If set, it will only update the DNS once then exit.
#[structopt(long)]
pub oneshot: bool,
}