Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,21 +143,23 @@ struct Cli {
short = 'R',
action = SetFalse,
default_value = "true",
help = "Do not use the Rust API for supported commands"
help = "Do not use the Rust API for supported commands",
global = true,
)]
rust: bool,

#[clap(flatten)]
credentials: CredentialArgs,

// TODO allow specifying user by name as well
#[clap(short, long, help = "ID of the user to impersonate")]
#[clap(short, long, help = "ID of the user to impersonate", global = true)]
impersonate: Option<u32>,

#[clap(
short = 'T',
long,
help = format!("Timeout for requests in seconds [default: {}]", avina::DEFAULT_TIMEOUT),
global = true,
)]
timeout: Option<u64>,

Expand All @@ -166,7 +168,8 @@ struct Cli {
short,
long,
help = "Format of the output",
default_value_t = Format::Table(TableFormat::Rounded)
default_value_t = Format::Table(TableFormat::Rounded),
global = true,
)]
format: Format,

Expand Down
Loading