Skip to content

Commit

Permalink
support env vars for email & token
Browse files Browse the repository at this point in the history
  • Loading branch information
Will committed Feb 8, 2024
1 parent 6febd49 commit ad3c15f
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 @@ -19,8 +19,8 @@ pub fn parse<'a>(args: &[OsString]) -> Args<'a> {
(version: &*version.version)
(about: crate_description!())
(@arg interface: -i --interface <interface> "Network interface")
(@arg email: --email <email> "API user email")
(@arg token: --token <token> "API access token")
(@arg email: --email env[KENTIK_EMAIL] <email> "API user email")
(@arg token: --token env[KENTIK_TOKEN] <token> "API access token")
(@arg sample: --sample [N] "Sample 1:N flows")
(@arg device_id: --("device-id") [ID] "Device ID")
(@arg device_if: --("device-if") [interface] "Device interface")
Expand Down

0 comments on commit ad3c15f

Please sign in to comment.