diff --git a/packaging_apps_arguments_format.md b/packaging_apps_arguments_format.md index 4da68967..ddd3e436 100644 --- a/packaging_apps_arguments_format.md +++ b/packaging_apps_arguments_format.md @@ -87,7 +87,7 @@ Example in toml: [maybe.some.stuff.before.the_name] type = "string" ask.en = "the question in english" -ask.fr = "the question in french" +ask.fr = "la question en français" example = "an example value" # optional choices = ["fr", "en"] default = "en" # optional @@ -250,6 +250,34 @@ And in json: }, ``` +### Number + +Like string except the user needs to enter a number + +Example in toml: + +```toml +[maybe.some.stuff.before.the_name] +type = "number" +ask.en = "the question in english" +ask.fr = "the question in french" +default = 0 +``` + +And in json: + +```javascript +{ + "name": "the_name", + "type": "number", + "ask": { + "en": "the question in english", + "fr": "the question in french" + }, + "default": 0 +}, +``` + ### App This type will ask the user to select an application in the list of installed