mirror of
https://github.com/onyx-and-iris/meld-cli.git
synced 2026-04-09 02:43:35 +00:00
add --host and --port flags
This commit is contained in:
16
utils/cli.js
16
utils/cli.js
@@ -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'
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user