mirror of
https://github.com/YunoHost/package_check.git
synced 2024-09-03 20:06:20 +02:00
manifest_parsing.py: Support string type args with defaults
This commit is contained in:
parent
f66491978d
commit
7f926a791c
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ def argument_for_question(question, all_choices=False):
|
|||
|
||||
if question_type is None and question.get("choices"):
|
||||
question_type = "boolean"
|
||||
elif question_type is None and question.get("default"):
|
||||
elif question_type in [None, "string"] and question.get("default"):
|
||||
question_type = "with_default"
|
||||
elif question_type is None and question["name"] == "admin":
|
||||
question_type = "user"
|
||||
|
|
Loading…
Add table
Reference in a new issue