summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2019-03-06 10:36:52 +0900
committerKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2019-04-09 14:59:46 +0900
commit6d6745d65a2597cf22525c5458eccbbdbafcef6e (patch)
tree15db4898033b08169a1ab94aed91ec4b3dcf8aea /scripts
parentfc079b6489240673348db06cee87b7babebf3b52 (diff)
find: tidyup default_arg()
It returned additional default args, but it will be issue for html. This patch exchange to retrun whole args Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/find.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/find.py b/scripts/find.py
index cbefcbe..9c02258 100755
--- a/scripts/find.py
+++ b/scripts/find.py
@@ -27,14 +27,14 @@ class find(base.base):
match = 0
for cmd in arg:
if (cmd == "-a"):
- return []
+ return arg
if ((cmd == "-s") or (cmd == "-ns")):
match = 1
if (not match):
- return ["-ns", "Done"]
+ arg += ["-ns", "Done"]
- return []
+ return arg
#--------------------
# parse_option
@@ -101,7 +101,7 @@ class find(base.base):
self.parse_files(arg)
- arg += self.default_arg(arg)
+ arg = self.default_arg(arg)
# -a : all
# -s : matched status