Skip to content

Commit

Permalink
fix: deprecation warning format
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxTueckeGlobus committed Oct 15, 2024
1 parent e468d90 commit 04602ed
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 16 deletions.
12 changes: 4 additions & 8 deletions src/globus_cli/commands/timer/create/transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,15 +187,11 @@ def transfer_command(
dest_endpoint, cmd_dest_path = destination

if delete:
click.echo(
click.style(
"`--delete` has been deprecated and "
"will be removed in a future release. "
"Use --delete-destination-extra instead.",
fg="yellow",
),
err=True,
msg = (
"`--delete` has been deprecated and will be removed in a future release. "
"Use --delete-destination-extra instead."
)
click.echo(click.style(msg, fg="yellow"), err=True)

if recursive is not None:
if batch:
Expand Down
12 changes: 4 additions & 8 deletions src/globus_cli/commands/transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,15 +339,11 @@ def transfer_command(
dest_endpoint, cmd_dest_path = destination

if delete:
click.echo(
click.style(
"`--delete` has been deprecated and "
"will be removed in a future release. "
"Use --delete-destination-extra instead.",
fg="yellow",
),
err=True,
msg = (
"`--delete` has been deprecated and will be removed in a future release. "
"Use --delete-destination-extra instead."
)
click.echo(click.style(msg, fg="yellow"), err=True)

# avoid 'mutex_option_group', emit a custom error message
if recursive is not None and batch:
Expand Down

0 comments on commit 04602ed

Please sign in to comment.