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

15 lines
410 B
Rust
Raw Normal View History

2021-12-12 03:32:05 -06:00
use structopt::StructOpt;
/// A tool to automatically update DNS entries on Gandi, using it as a dynamic DNS system.
#[derive(StructOpt, Debug)]
2022-01-30 03:48:24 -06:00
#[structopt(name = "gandi-live-dns")]
2021-12-12 03:32:05 -06:00
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,
}