diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2019-03-06 10:42:19 +0900 |
---|---|---|
committer | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2019-04-09 14:59:46 +0900 |
commit | 7997deae1430017e0cae7ad5337ffdfff0dc0e71 (patch) | |
tree | 30162029467df04acc0a2163cf17a3604f315aa6 | |
parent | 17a5ae0b96fd0517bbf4546f3d20ba3484f5df24 (diff) |
find: replace -a to -all
commit fbd5adac3e9a0 ("find: add -a option")
added -a option to indicate all tasks, but it was same as
assignee member. This patch fixup it.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | README.md | 2 | ||||
-rwxr-xr-x | scripts/find.py | 8 |
3 files changed, 7 insertions, 5 deletions
@@ -1,6 +1,6 @@ HTML = ./scripts/html.py FIND = ./scripts/find.py -ALLYAML = $(shell ${FIND} -a) +ALLYAML = $(shell ${FIND} -all) FOLDERS = $(subst ./,,$(shell cd ./projects; find -type d)) TEAM = Core IO MM MEMBER = BSP Geert Jacopo Kaneko Kieran Laurent Magnus Marek Morimoto Niklas Shimoda Simon Ulrich Wolfram @@ -29,7 +29,6 @@ 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 @@ -46,6 +45,7 @@ You need to have **.config** file. You can copy sample .config, and edit it * -f : show with file name * -r : show with relationships * --oneline : show one line + * --all : show all tasks # HTML diff --git a/scripts/find.py b/scripts/find.py index 9c02258..cf25e16 100755 --- a/scripts/find.py +++ b/scripts/find.py @@ -22,12 +22,14 @@ class find(base.base): # default_arg #-------------------- def default_arg(self, arg): + # return [] for -all + # # add "-ns Done" automatically # if user doesn't specify "-s" or "-ns" match = 0 for cmd in arg: - if (cmd == "-a"): - return arg + if (cmd == "-all"): + return [] if ((cmd == "-s") or (cmd == "-ns")): match = 1 @@ -103,7 +105,7 @@ class find(base.base): arg = self.default_arg(arg) - # -a : all + # -all: all # -s : matched status # -ns : not matched status # -a : matched assignee |