Peter Hedenskog 2024-06-18 12:48:22 +02:00 committed by GitHub
parent 17d871e2ca
commit 538cc3a0c3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View File

@ -132,7 +132,7 @@ async function start() {
let options = parsed.options;
if (options.api && options.api.hostname) {
if (options.api && options.api.hostname && !options.disableAPI) {
api(options);
} else {
try {

View File

@ -2034,9 +2034,14 @@ export async function parseCommandLine() {
describe:
'Give your test a slug. The slug is used when you send the metrics to your data storage to identify the test and the folder of the tests. The max length of the slug is 200 characters and it can only contain a-z A-Z 0-9 and -_ characters.'
})
.option('disableAPI', {
default: false,
type: 'boolean'
})
.help('h')
.alias('help', 'h')
.config(config)
.hide('disableAPI')
.alias('version', 'V')
.version(version)
.coerce('budget', function (argument) {