summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2019-02-25 15:48:37 +0900
committerKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2019-04-09 14:59:34 +0900
commit7b826ee9948ade695d86a78f659494b40731067e (patch)
tree72e9028d112b204e408c366f31713a9598e57018
parent27b01f2b9106a9f29bd142be0cca2736c862ef1e (diff)
find: add -a option
default will ignore Done status, but we sometimes want to get all tasks. This patch adds -a option for it Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
-rw-r--r--README.md1
-rwxr-xr-xscripts/find.py3
2 files changed, 4 insertions, 0 deletions
diff --git a/README.md b/README.md
index e5e6994..2410b8a 100644
--- a/README.md
+++ b/README.md
@@ -29,6 +29,7 @@ You need to have **.config** file. You can copy sample .config, and edit it
* key : show matched key task
- ject 7ddd3743-fa13-4966-bcf0-10609b873ab5
- ject 7ddd3743-fa13-4966-bcf0-10609b873ab5 e704e989-ccaa-48a5-8f58-28c5b93467ff
+ * -a : show all
* -s : show matched status task
* -ns : show unmatched status task
- ject -s Active ... # single match
diff --git a/scripts/find.py b/scripts/find.py
index 89c9cee..cbefcbe 100755
--- a/scripts/find.py
+++ b/scripts/find.py
@@ -26,6 +26,8 @@ class find(base.base):
# if user doesn't specify "-s" or "-ns"
match = 0
for cmd in arg:
+ if (cmd == "-a"):
+ return []
if ((cmd == "-s") or (cmd == "-ns")):
match = 1
@@ -101,6 +103,7 @@ class find(base.base):
arg += self.default_arg(arg)
+ # -a : all
# -s : matched status
# -ns : not matched status
# -a : matched assignee