Fixed typo

This commit is contained in:
2019-03-11 07:27:54 +01:00
parent 0401acd31b
commit 416d7fdd6d
7 changed files with 30 additions and 43 deletions

View File

@@ -84,7 +84,7 @@ def check_arguments(arguments, arguments_filter):
def arg_filter_and(arguments, filter, can_false = False):
arg_filter = []
for i in filter:
if i in filter:
if i in arguments:
arg_filter.append(i)
if can_false:
return arg_filter if len(arg_filter) else False
@@ -105,6 +105,6 @@ def arg_filter_only_one(arguments, required):
def arg_filter_first(arguments, filter, optional = True):
for i in filter:
if i in filter:
if i in arguments:
return i
return optional