mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 16:13:24 +02:00
fix all vulnerabilities in the production code (#817)
Signed-off-by: Denis barbaron <denis.barbaron@orange.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Copyright © 2019 contains code contributed by Orange SA, authors: Denis Barbaron - Licensed under the Apache license 2.0
|
||||
* Copyright © 2024 contains code contributed by Orange SA, authors: Denis Barbaron - Licensed under the Apache license 2.0
|
||||
**/
|
||||
|
||||
var yargs = require('yargs')
|
||||
@@ -40,8 +40,6 @@ var _argv = yargs.usage('Usage: $0 <command> [options]')
|
||||
.demandCommand(1, 'Must provide a valid command.')
|
||||
.help('h', 'Show help.')
|
||||
.alias('h', 'help')
|
||||
.version('V', 'Show version.', function() {
|
||||
return require('../../package').version
|
||||
})
|
||||
.version('V', 'Show version.', require('../../package').version)
|
||||
.alias('V', 'version')
|
||||
.argv
|
||||
|
||||
Reference in New Issue
Block a user