Skip to content

Commit ffdb2f5

Browse files
mvolzjdforrester
authored andcommitted
(Actually) suppress yargs warning
Follow up to 1b7ce8d Move suppression command up earlier to suppress all warnings. Increment patch version.
1 parent 2ff83ae commit ffdb2f5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/base_service.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,9 @@ class BaseService {
156156

157157
// check process arguments
158158
const args = require( 'yargs' )
159+
// Allow the below definition of --version to not trigger warnings
160+
// per https://yargs.js.org/docs/#api-reference-version
161+
.version( false )
159162
.usage( 'Usage: $0 [command] [options]' )
160163
.options( {
161164
n: {
@@ -187,9 +190,6 @@ class BaseService {
187190
global: true
188191
}
189192
} )
190-
// Allow the above definition of --version to not trigger warnings
191-
// per https://yargs.js.org/docs/#api-reference-version
192-
.version( false )
193193
.command( 'docker-start', 'starts the service in a Docker container' )
194194
.command( 'docker-test', 'starts the test process in a Docker container' )
195195
.command( 'build', 'builds the service\'s package and deploy repo', {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "service-runner",
3-
"version": "6.0.0",
3+
"version": "6.0.1",
44
"description": "Generic nodejs service supervisor / cluster runner",
55
"main": "service-runner.js",
66
"bin": {

0 commit comments

Comments
 (0)