From 7b826ee9948ade695d86a78f659494b40731067e Mon Sep 17 00:00:00 2001 From: Kuninori Morimoto Date: Mon, 25 Feb 2019 15:48:37 +0900 Subject: 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 --- scripts/find.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scripts/find.py') 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 -- cgit v1.2.3