Skip to content

Commit

Permalink
also allow endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-prosser committed Apr 3, 2024
1 parent d141f8d commit 7a511de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ fn check_if_context_is_a_required_field(
client: &Client,
args: &Args,
) -> Result<()> {
let context_is_none = args.context.is_none();
let context_is_none = args.context.is_none() && args.endpoint.is_none();

if config.context_is_required && context_is_none {
return Err(anyhow!(
Expand Down

0 comments on commit 7a511de

Please sign in to comment.