mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-09 14:43:05 -04:00
dont show empty default arguments
This commit is contained in:
parent
9464b63f2b
commit
6bdc923abb
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ function createCommandPage(context, prefix, command){
|
||||||
let argument = `-${a._name} <${a._type.replace('bool','true/false')}>`
|
let argument = `-${a._name} <${a._type.replace('bool','true/false')}>`
|
||||||
argument = pill(argument)
|
argument = pill(argument)
|
||||||
if(a.help) argument += ` ${a.help}`
|
if(a.help) argument += ` ${a.help}`
|
||||||
argument += `\n ${smallPill(`default: ${a.default}`)} `
|
if(a.default !== "") argument += `\n ${smallPill(`default: ${a.default}`)} `
|
||||||
if(!a.required) argument += smallPill('optional')
|
if(!a.required) argument += smallPill('optional')
|
||||||
args.push(argument)
|
args.push(argument)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue