add --host and --port flags

This commit is contained in:
2025-06-30 16:00:49 +01:00
parent 345a317bcb
commit c908147e60
2 changed files with 17 additions and 5 deletions

View File

@@ -17,15 +17,27 @@ const commands = {
}
const flags = {
host: {
type: 'string',
shortFlag: 'H',
default: 'localhost',
desc: 'Host address for the Meld server'
},
port: {
type: 'number',
shortFlag: 'P',
default: 13376,
desc: 'Port number for the Meld server'
},
help: {
type: 'boolean',
shortFlag: 'h',
description: 'Display help information'
desc: 'Display help information'
},
version: {
type: 'boolean',
shortFlag: 'v',
description: 'Display the version number'
desc: 'Display the version number'
}
}