Skip to content

Commit

Permalink
base_service: Suppress yargs's warning about using 'version' flags
Browse files Browse the repository at this point in the history
  • Loading branch information
jdforrester authored and mvolz committed Aug 21, 2024
1 parent 54e3bb8 commit 1b7ce8d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/base_service.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,9 @@ class BaseService {
global: true
}
} )
// Allow the above definition of --version to not trigger warnings
// per https://yargs.js.org/docs/#api-reference-version
.version( false )
.command( 'docker-start', 'starts the service in a Docker container' )
.command( 'docker-test', 'starts the test process in a Docker container' )
.command( 'build', 'builds the service\'s package and deploy repo', {
Expand Down

0 comments on commit 1b7ce8d

Please sign in to comment.