# Have script listen for additional arguments

**URL:** <https://forum.qoitech.com/t/have-script-listen-for-additional-arguments/280>\
**Category:** Support\
**Created:** [April 1, 2019, 10:11pm UTC](https://forum.qoitech.com/t/have-script-listen-for-additional-arguments/280 "2019-04-01T22:11:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![brendend](https://avatars.discourse-cdn.com/v4/letter/b/ecb155/32.png) [@brendend](https://forum.qoitech.com/u/brendend)\
**Post date:** [April 1, 2019, 10:11pm UTC](https://forum.qoitech.com/t/have-script-listen-for-additional-arguments/280/1 "2019-04-01T22:11:45Z")

</div>

Hello,

Is it possible to either run an Otii Lua script from the command line, or to input arguments in the Otii scripting window as the script is running? In testing, it did not seem like the script was able to read new arguments entered in the “Argument” field using io.read().

Thank you!

---

<div class="post-metadata">

**Author:** ![bjorn.rosqvist](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.qoitech.com/bjorn.rosqvist/32/238_2.png) [@bjorn.rosqvist](https://forum.qoitech.com/u/bjorn.rosqvist)\
**Post date:** [April 2, 2019, 5:55am UTC](https://forum.qoitech.com/t/have-script-listen-for-additional-arguments/280/2 "2019-04-02T05:55:08Z")

</div>

Hi,

It is possible to run the script in command line by using:

> otiicli “name\_of\_the\_script.lua”

While running the script in command line you can use io.read() to get user inputs.  
However, it is not possible to input arguments, while running the script, in the Otii UI.

Best regards,  
Björn

---

<div class="post-metadata">

**Author:** ![bjorn.rosqvist](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.qoitech.com/bjorn.rosqvist/32/238_2.png) [@bjorn.rosqvist](https://forum.qoitech.com/u/bjorn.rosqvist)\
**Post date:** [April 2, 2019, 6:15am UTC](https://forum.qoitech.com/t/have-script-listen-for-additional-arguments/280/3 "2019-04-02T06:15:05Z")

</div>

Hi,

If you just want arguments in the start of the script in the UI, then you can use:  
[get\_args()](https://www.qoitech.com/help/scripting/modules/otii.html#get_args)

Best regards,  
Björn

---

<div class="post-metadata">

**Author:** ![brendend](https://avatars.discourse-cdn.com/v4/letter/b/ecb155/32.png) [@brendend](https://forum.qoitech.com/u/brendend)\
**Post date:** [April 2, 2019, 6:13pm UTC](https://forum.qoitech.com/t/have-script-listen-for-additional-arguments/280/4 "2019-04-02T18:13:12Z")

</div>

Hi Bjorn,

Thanks! How do I install/open otiicli?

Ashley

---

<div class="post-metadata">

**Author:** ![bjorn.rosqvist](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.qoitech.com/bjorn.rosqvist/32/238_2.png) [@bjorn.rosqvist](https://forum.qoitech.com/u/bjorn.rosqvist)\
**Post date:** [April 3, 2019, 6:46am UTC](https://forum.qoitech.com/t/have-script-listen-for-additional-arguments/280/5 "2019-04-03T06:46:25Z")

</div>

Hi,

In your Otii installation folder you can find otiicli application.  
Just use a terminal window and call

> otiicli name\_of\_the\_script.lua

You might need to add otii in your path

Best regards,  
Björn
