-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixing help message and improving error handling #83
Conversation
@@ -25,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 and auto-paginate confirmation.") | |||
help="Skip initial confirmation.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe change to Skip confirmation.
or Skip user confirmation.
. like, initial
is kind of ambiguous, no context.
@carlevison, WDYT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@const-cloudinary 'Skip confirmation.' is fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated to Skip confirmation.
@@ -63,6 +62,9 @@ def regen_derived(trans_str, eager_notification_url, | |||
api_name="admin", | |||
auto_paginate=auto_paginate, | |||
force=force, return_data=True) | |||
if trans_details is False: | |||
exit() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe write an error message saying what went wrong? Just exiting can be very confusing. And it you run it in script/cron job - you have no idea what happened/ did not happen.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as discussed I've updated this to return False
instead
@tommyg-cld great PR! |
Brief Summary of Changes
What does this PR address?
Are tests included?
Reviewer, please note:
Checklist: