README.md in boojs-0.0.16 vs README.md in boojs-0.0.17

- old
+ new

@@ -22,16 +22,17 @@ ``` # Usage #### SYNOPSIS ```sh -boojs [-e statement] [-v file] [file] +boojs [-e statement] [-t timeout] [-v file] [file] ``` #### DESCRIPTION The following options are available: - * `-e` - Pass a javascript statement to execute after the file (if a file is provided) and then immediately terminate. + * `-e` - Pass a javascript statement to execute after the file (if a file is provided) and then immediately terminate unless `-t` is set. + * `-t` - Close the program after N seconds have passed, unless an exception is raised * `-v` - Verify that a file contains no javascript syntax errors. Returns 0 if there are no errors. #### EXAMPLES Open a javascript pipe that reads from stdin, writes via console.log to stdout, prints exceptions via stderr, and exits with a return code of 1 if there are errors. ```sh @@ -45,9 +46,15 @@ Execute a javascript statement, and then immediately exit. Exceptions will return 1. ```sh (sh)>boojs -e "console.log(document);" ``` + +Execute a javascript statement, and then wait 4 seconds before exiting. Exceptions will return 1 and end execution early. +```sh +(sh)>boojs -e "console.log(document); -t 4" +``` + Verify that a file contains no javascript runtime initialization errors ```sh (sh)>boojs -v code.js (sh)>echo $?