mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 14:13:02 -04:00
further argument handling changes
This commit is contained in:
parent
6bdc923abb
commit
f06d600a47
2 changed files with 10 additions and 9 deletions
|
@ -58,8 +58,9 @@ function createCommandPage(context, prefix, command){
|
|||
let argument = `-${a._name} <${a._type.replace('bool','true/false')}>`
|
||||
argument = pill(argument)
|
||||
if(a.help) argument += ` ${a.help}`
|
||||
if(a.default !== "") argument += `\n ${smallPill(`default: ${a.default}`)} `
|
||||
if(!a.required) argument += smallPill('optional')
|
||||
argument += `\n `
|
||||
if(a.default !== "") argument += ` ${smallPill(`default: ${a.default}`)}`
|
||||
if(!a.required) argument += ` ${smallPill('optional')}`
|
||||
args.push(argument)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue