dont show empty default arguments

This commit is contained in:
derpystuff 2023-08-09 11:59:15 +02:00
parent 9464b63f2b
commit 6bdc923abb

View file

@ -58,7 +58,7 @@ function createCommandPage(context, prefix, command){
let argument = `-${a._name} <${a._type.replace('bool','true/false')}>`
argument = pill(argument)
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')
args.push(argument)
}