summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Zaoui <daniel.zaoui@samsung.com>2015-08-16 16:50:52 +0300
committerDaniel Zaoui <daniel.zaoui@samsung.com>2015-08-16 16:50:52 +0300
commit0aaf51c01effbc35b12230f1eca8ef12520e438e (patch)
tree7fe506b3fc27b5cdaf768aa7ab0c51219159cce5
parent2d5c7786646096c4906da30122df4912f9518327 (diff)
Fix params parsing
-rw-r--r--src/bin/cli.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/cli.c b/src/bin/cli.c
index b191321..ef3956f 100644
--- a/src/bin/cli.c
+++ b/src/bin/cli.c
@@ -153,7 +153,8 @@ _function_invoke(unsigned long long obj, Lexer *l, Eina_Bool is_get)
153 if (!foo) return EINA_FALSE; 153 if (!foo) return EINA_FALSE;
154 Eina_Iterator *keys_itr = eolian_property_keys_get(foo, type), *values_itr = eolian_property_values_get(foo, type); 154 Eina_Iterator *keys_itr = eolian_property_keys_get(foo, type), *values_itr = eolian_property_values_get(foo, type);
155 155
156 if (!_next_token(l, "(") || 156 /* If no param is given, we have to check no param is required */
157 if ((!_next_token(l, "(") && !keys_itr && (is_get || values_itr)) ||
157 (_params_parse(l, keys_itr, &params) && 158 (_params_parse(l, keys_itr, &params) &&
158 (is_get || _params_parse(l, values_itr, &params)) && 159 (is_get || _params_parse(l, values_itr, &params)) &&
159 _next_token(l, ")") 160 _next_token(l, ")")