Skip to content

Commit

Permalink
support alternative env var names
Browse files Browse the repository at this point in the history
  • Loading branch information
Will committed Sep 16, 2024
1 parent 1380aa9 commit 9983d48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ pub fn arguments() -> Result<Args> {
pub fn parser() -> OptionParser<Args> {
let capture = short('i').long("interface").argument("interface").map(Capture);

let email = long("email").env("KENTIK_EMAIL").cstring("email");
let token = long("token").env("KENTIK_TOKEN").cstring("token");
let email = long("email").env("KENTIK_EMAIL").env("KENTIK_API_EMAIL").cstring("email");
let token = long("token").env("KENTIK_TOKEN").env("KENTIK_API_TOKEN").cstring("token");

let sample = long("sample").argument("N").optional();
let decode = long("no-decode").switch().map(|b| !b);
Expand Down

0 comments on commit 9983d48

Please sign in to comment.