## lib/mscript
* [lib/mscript](#module_lib/mscript)
* [~mscript](#module_lib/mscript..mscript)
* [.arg(shrt, lng)](#module_lib/mscript..mscript.arg) ⇒ boolean
* [.arg_pos(shrt, lng)](#module_lib/mscript..mscript.arg_pos) ⇒ boolean
* [.state_clear()](#module_lib/mscript..mscript.state_clear)
* [.alts_unique()](#module_lib/mscript..mscript.alts_unique)
* [.interpret()](#module_lib/mscript..mscript.interpret)
* [.last_loop()](#module_lib/mscript..mscript.last_loop)
* [.parent_loop()](#module_lib/mscript..mscript.parent_loop)
* [.state_update()](#module_lib/mscript..mscript.state_update)
* [.str_to_arr()](#module_lib/mscript..mscript.str_to_arr)
* [.light_state()](#module_lib/mscript..mscript.light_state)
* [.light_to_arr()](#module_lib/mscript..mscript.light_to_arr)
* [.loop_count()](#module_lib/mscript..mscript.loop_count)
* [.fail()](#module_lib/mscript..mscript.fail)
* [.output()](#module_lib/mscript..mscript.output)
* [.init()](#module_lib/mscript..mscript.init)
* [.tests()](#module_lib/mscript..mscript.tests)
### lib/mscript~mscript
object mscript
**Kind**: inner constant of [lib/mscript
](#module_lib/mscript)
* [~mscript](#module_lib/mscript..mscript)
* [.arg(shrt, lng)](#module_lib/mscript..mscript.arg) ⇒ boolean
* [.arg_pos(shrt, lng)](#module_lib/mscript..mscript.arg_pos) ⇒ boolean
* [.state_clear()](#module_lib/mscript..mscript.state_clear)
* [.alts_unique()](#module_lib/mscript..mscript.alts_unique)
* [.interpret()](#module_lib/mscript..mscript.interpret)
* [.last_loop()](#module_lib/mscript..mscript.last_loop)
* [.parent_loop()](#module_lib/mscript..mscript.parent_loop)
* [.state_update()](#module_lib/mscript..mscript.state_update)
* [.str_to_arr()](#module_lib/mscript..mscript.str_to_arr)
* [.light_state()](#module_lib/mscript..mscript.light_state)
* [.light_to_arr()](#module_lib/mscript..mscript.light_to_arr)
* [.loop_count()](#module_lib/mscript..mscript.loop_count)
* [.fail()](#module_lib/mscript..mscript.fail)
* [.output()](#module_lib/mscript..mscript.output)
* [.init()](#module_lib/mscript..mscript.init)
* [.tests()](#module_lib/mscript..mscript.tests)
#### mscript.arg(shrt, lng) ⇒ boolean
Check for the presence of specific arguments in process
argv
**Kind**: static method of [mscript
](#module_lib/mscript..mscript)
**Returns**: boolean
- Is flag present
| Param | Type | Description |
| --- | --- | --- |
| shrt | string
| Short version of argument or flag |
| lng | string
| Long version of argument or flag |
#### mscript.arg_pos(shrt, lng) ⇒ boolean
Check for the position of specific arguments in process
argv
**Kind**: static method of [mscript
](#module_lib/mscript..mscript)
**Returns**: boolean
- Position of arg or flag, for locating input
| Param | Type | Description |
| --- | --- | --- |
| shrt | string
| Short version of argument or flag |
| lng | string
| Long version of argument or flag |
#### mscript.state_clear()
Clear the state object
**Kind**: static method of [mscript
](#module_lib/mscript..mscript)
#### mscript.alts_unique()
**Kind**: static method of [mscript
](#module_lib/mscript..mscript)
#### mscript.interpret()
**Kind**: static method of [mscript
](#module_lib/mscript..mscript)
#### mscript.last_loop()
**Kind**: static method of [mscript
](#module_lib/mscript..mscript)
#### mscript.parent_loop()
**Kind**: static method of [mscript
](#module_lib/mscript..mscript)
#### mscript.state_update()
**Kind**: static method of [mscript
](#module_lib/mscript..mscript)
#### mscript.str_to_arr()
**Kind**: static method of [mscript
](#module_lib/mscript..mscript)
#### mscript.light_state()
**Kind**: static method of [mscript
](#module_lib/mscript..mscript)
#### mscript.light_to_arr()
**Kind**: static method of [mscript
](#module_lib/mscript..mscript)
#### mscript.loop_count()
**Kind**: static method of [mscript
](#module_lib/mscript..mscript)
#### mscript.fail()
**Kind**: static method of [mscript
](#module_lib/mscript..mscript)
#### mscript.output()
**Kind**: static method of [mscript
](#module_lib/mscript..mscript)
#### mscript.init()
**Kind**: static method of [mscript
](#module_lib/mscript..mscript)
#### mscript.tests()
Legacy tests. To be deprecated in future releases.
**Kind**: static method of [mscript
](#module_lib/mscript..mscript)