opn-cli
Advanced tools
Comparing version 2.0.0 to 3.0.0
10
cli.js
@@ -8,6 +8,6 @@ #!/usr/bin/env node | ||
Usage | ||
$ opn <file|url> [--no-wait] [-- <app> [args]] | ||
$ opn <file|url> [--wait] [-- <app> [args]] | ||
Options | ||
--no-wait Don't wait for the app to exit | ||
--wait Wait for the app to exit | ||
@@ -19,3 +19,7 @@ Examples | ||
$ opn unicorn.png | ||
`); | ||
`, { | ||
default: { | ||
wait: false | ||
} | ||
}); | ||
@@ -22,0 +26,0 @@ cli.flags.app = cli.input.slice(1); |
{ | ||
"name": "opn-cli", | ||
"version": "2.0.0", | ||
"version": "3.0.0", | ||
"description": "A better node-open. Opens stuff like websites, files, executables. Cross-platform.", | ||
@@ -61,3 +61,6 @@ "license": "MIT", | ||
"xo": "*" | ||
}, | ||
"xo": { | ||
"esnext": true | ||
} | ||
} |
@@ -19,6 +19,6 @@ # opn-cli [![Build Status](https://travis-ci.org/sindresorhus/opn-cli.svg?branch=master)](https://travis-ci.org/sindresorhus/opn-cli) | ||
Usage | ||
$ opn <file|url> [--no-wait] [-- <app> [args]] | ||
$ opn <file|url> [--wait] [-- <app> [args]] | ||
Options | ||
--no-wait Don't wait for the app to exit | ||
--no-wait Wait for the app to exit | ||
@@ -25,0 +25,0 @@ Examples |
3399
21