CLI options
===========

The following options may be passed to the CLI `watai` tool invocation.


Behavior modifiers
------------------

### `--config json_hash` ###

The `--config` option allows for call-time configuration files overrides.

It takes a JSON hash, formatted according to the [[JSON configuration|Configuration]] specification.

#### Example: ####

```javascript
// my/suite/folder/config.json
{
	"baseURL": "http://127.0.0.1/",
	"timeout": 500
}
```

Invocation:

	$ watai --config '{"timeout":10000}' my/suite/folder	# will execute the suite with a 10000 ms timeout


Helpers
-------

### `--help` ###

Displays Watai's synopsis and exits.

Exit code: `0`, as you explicitly requested the help only.

### `--version` ###

Displays a single line (since v0.4) containing the `package.json` version identifier, making it easy to match against.

Exit code: `0`, as you explicitly requested the version only.

### `--installed` ###

Does basic bootstrapping tests to check if Watai seems to be properly installed.

Exit code: `0` if Watai seems to be properly installed, `1` otherwise.


Developer
---------

These options are mostly suited for developers of Watai itself or advanced users.

### `--setup json_hash` ###

The `--setup` option allows for call-time setup override. It takes a JSON hash, formatted according to the [[JSON configuration|Configuration]] specification.

Learn more about [[setup|Setup]].
