further argument handling changes

This commit is contained in:
derpystuff 2023-08-09 12:05:44 +02:00
parent 6bdc923abb
commit f06d600a47
2 changed files with 10 additions and 9 deletions

View file

@ -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)
}
}