[sysadmin-bin] No need to check how many args we have on the command line, calling options.due_expiration without a
- From: Andrea Veri <av src gnome org>
- To: gnome-sysadmin gnome org,commits-list gnome org
- Subject: [sysadmin-bin] No need to check how many args we have on the command line, calling options.due_expiration without a
- Date: Sat, 3 May 2014 17:55:00 +0000 (UTC)
commit 3bc36f767310ef50e88f4d38eb0de824363c01fd
Author: Andrea Veri <av gnome org>
Date: Sat May 3 19:54:54 2014 +0200
No need to check how many args we have on the command line, calling options.due_expiration without any
other option should be enough to print an help text
membership/foundation-db-operations.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/membership/foundation-db-operations.py b/membership/foundation-db-operations.py
index 8346378..917ffc1 100755
--- a/membership/foundation-db-operations.py
+++ b/membership/foundation-db-operations.py
@@ -111,7 +111,7 @@ def main():
if options.print_current_members:
print_current_members()
- if options.due_expiration and not len(args) != 2:
+ if options.due_expiration:
print "Error: the --due-expiration flag requires either the --three-months or the --six-months
options"
elif options.due_expiration and options.three_months or options.six_months:
print_due_expiration()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]