Skip to content

Commit

Permalink
Fixing help message and improving error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
tommyg-cld committed Nov 7, 2023
1 parent 81e047a commit 719fd35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cloudinary_cli/modules/regen_derived.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
@option("-A", "--auto_paginate", is_flag=True, default=False,
help="Auto-paginate Admin API calls.")
@option("-F", "--force", is_flag=True,
help="Skip initial confirmation.")
help="Skip confirmation.")
@option("-n", "--max_results", nargs=1, default=10,
help="""The maximum number of results to return.
Default: 10, maximum: 500.""")
Expand Down Expand Up @@ -63,7 +63,7 @@ def regen_derived(trans_str, eager_notification_url,
auto_paginate=auto_paginate,
force=force, return_data=True)
if trans_details is False:
exit()
return False

derived_resources = trans_details.get('derived')
if not derived_resources:
Expand Down

0 comments on commit 719fd35

Please sign in to comment.