We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d160968 commit d237cdcCopy full SHA for d237cdc
README.md
@@ -11,7 +11,10 @@ npm install edit-script
11
## Usage
12
13
```
14
-edit-script <script-name>
+$ edit-script --help
15
+Edit npm scripts from the command line without worrying about json escaping.
16
+
17
+ edit-script <script>
18
19
20
## License
cli.js
@@ -6,6 +6,16 @@ var findPkg = require('pkg-up');
6
7
var script = process.argv[2];
8
9
+// help message:
10
+if (script === '--help') {
+ console.log(
+ `Edit npm scripts from the command line without worrying about json escaping.
+ edit-script <script>`
+ );
+ process.exit();
+}
var pkgPath;
var pkg = {}
21
var scripts = {};
0 commit comments