summaryrefslogtreecommitdiff
path: root/scripts/find.py
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2019-03-06 10:52:31 +0900
committerKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2019-04-09 14:59:46 +0900
commit191eee1990dbe1b8e6bfcc98fdef7bde655f2538 (patch)
treeb4ae1802d125d3f0711da5184b2fcb8ab14d8e39 /scripts/find.py
parent7997deae1430017e0cae7ad5337ffdfff0dc0e71 (diff)
find: add -a NoAssignee support
We can find No Assignee task as below, but not useful. find -na "" This patch support -a NoAssignee support for it. It might be replace if schema had required at assignee Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Diffstat (limited to 'scripts/find.py')
-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):