Skip to content

Instantly share code, notes, and snippets.

@trimoq
Last active March 17, 2020 11:14
Show Gist options
  • Save trimoq/3fd891bb9ff8a37ff9a1e2f7c92f23cc to your computer and use it in GitHub Desktop.
Save trimoq/3fd891bb9ff8a37ff9a1e2f7c92f23cc to your computer and use it in GitHub Desktop.
excerpt of the config struct
#[derive(StructOpt, Debug, Clone)]
#[structopt(name = "downloader")]
pub struct ConverterConfig{
#[structopt(short = "r", long, default_value = "eu-east2", env = "S3_REGION_NAME")]
pub s3_region_name: String,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment