Skip to content

Commit 1b7ce8d

Browse files
jdforrestermvolz
authored andcommitted
base_service: Suppress yargs's warning about using 'version' flags
1 parent 54e3bb8 commit 1b7ce8d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/base_service.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,9 @@ class BaseService {
187187
global: true
188188
}
189189
} )
190+
// Allow the above definition of --version to not trigger warnings
191+
// per https://yargs.js.org/docs/#api-reference-version
192+
.version( false )
190193
.command( 'docker-start', 'starts the service in a Docker container' )
191194
.command( 'docker-test', 'starts the test process in a Docker container' )
192195
.command( 'build', 'builds the service\'s package and deploy repo', {

0 commit comments

Comments
 (0)