summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/find.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/scripts/find.py b/scripts/find.py
index cf25e16..e1e86ae 100755
--- a/scripts/find.py
+++ b/scripts/find.py
@@ -24,13 +24,19 @@ class find(base.base):
def default_arg(self, arg):
# return [] for -all
#
+ # replace -a NoAssignee to -na ""
+ #
# add "-ns Done" automatically
# if user doesn't specify "-s" or "-ns"
match = 0
- for cmd in arg:
- if (cmd == "-all"):
+ for i in range(len(arg)):
+ if (arg[i] == "-all"):
return []
- if ((cmd == "-s") or (cmd == "-ns")):
+ if ((arg[i] == "-a") and
+ (arg[i+1] == "NoAssignee")):
+ arg[i] = "-na"
+ arg[i+1] = ""
+ if ((arg[i] == "-s") or (arg[i] == "-ns")):
match = 1
if (not match):