# Script hint : how to specify default value for a parameter in the propertie files or script annotation

**URL:** <https://forum.inductiveautomation.com/t/script-hint-how-to-specify-default-value-for-a-parameter-in-the-propertie-files-or-script-annotation/77442>\
**Category:** Module Development\
**Tags:** ignition81\
**Created:** [August 4, 2023, 2:09pm UTC](https://forum.inductiveautomation.com/t/script-hint-how-to-specify-default-value-for-a-parameter-in-the-propertie-files-or-script-annotation/77442 "2023-08-04T14:09:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [August 4, 2023, 2:09pm UTC](https://forum.inductiveautomation.com/t/script-hint-how-to-specify-default-value-for-a-parameter-in-the-propertie-files-or-script-annotation/77442/1 "2023-08-04T14:09:00Z")

</div>

@paul-griffith or @pturmel

How to specify default value for a parameter in the propertie files or script annotation

my propertie file:

```auto
sshShellCommand.desc=shell command with ssh from client to the gateway scope
sshShellCommand.param.host=host
sshShellCommand.param.username=username
sshShellCommand.param.password=password
sshShellCommand.param.port=port (default 22)

```

script hint:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/b/9bceb17352e9287187ba399044a0413484363e2f.png)

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [August 4, 2023, 2:18pm UTC](https://forum.inductiveautomation.com/t/script-hint-how-to-specify-default-value-for-a-parameter-in-the-propertie-files-or-script-annotation/77442/2 "2023-08-04T14:18:42Z")

</div>

How is your function defined/what annotations are you using?

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [August 4, 2023, 2:40pm UTC](https://forum.inductiveautomation.com/t/script-hint-how-to-specify-default-value-for-a-parameter-in-the-propertie-files-or-script-annotation/77442/3 "2023-08-04T14:40:44Z")

</div>

I use KeywordArgs parameters:

```auto
@ScriptFunction(docBundlePrefix = Constantes.BUNDLE_PREFIX_COMMAND)
@KeywordArgs(names = {"host", "username", "password", "port", "command","grep","promptChar","privateKeyFilePath","passPhrase"},
            types = {String.class,String.class,String.class,Integer.class,String.class,String.class,String.class,String.class,String.class})

```

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [August 7, 2023, 3:00pm UTC](https://forum.inductiveautomation.com/t/script-hint-how-to-specify-default-value-for-a-parameter-in-the-propertie-files-or-script-annotation/77442/4 "2023-08-07T15:00:17Z")

</div>

There's currently no way to contribute a default argument that will show up in that list. If the arg is detected as 'optional', then it adds that `Default: None` text, but it's hardcoded to that.

This is a limitation that should be lifted in 8.3; currently autocompletion for `system.*` functions is re-parsing the HTML text spit out by `ScriptFunctionHint`. In 8.3, the entire way script hints are provided will be changed to allow direct use of `com.inductiveautomation.ignition.common.script.typing.CompletionDescriptor` classes, but it's not possible to make that change in a backwards-compatible way, so 8.1 is not going to get that benefit.

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [August 7, 2023, 3:36pm UTC](https://forum.inductiveautomation.com/t/script-hint-how-to-specify-default-value-for-a-parameter-in-the-propertie-files-or-script-annotation/77442/5 "2023-08-07T15:36:30Z")

</div>

thanks for those clarifications.
