fix description generation, command generation

This commit is contained in:
idk
2021-11-06 20:47:04 -04:00
parent 5a60152ab4
commit d70f422bf5
2 changed files with 2 additions and 1 deletions

View File

@ -55,7 +55,7 @@ func (cc *ClientConfig) PrintCommandArgs() string {
} }
func (cc *ClientConfig) PrintCommand() string { func (cc *ClientConfig) PrintCommand() string {
if cc.ClientName != nil || *cc.ClientName != "" { if cc.ClientName == nil || *cc.ClientName == "" {
log.Fatal("-name is a required field.") log.Fatal("-name is a required field.")
} }
if cc.Command == nil || *cc.Command == "" { if cc.Command == nil || *cc.Command == "" {

View File

@ -45,6 +45,7 @@ func flagsSet() {
//pc.ConsoleLinkNameLang []flag.String("","","") //pc.ConsoleLinkNameLang []flag.String("","","")
pc.ConsoleIcon = flag.String("consoleicon", "", "Icon to use in console for Web Apps only. Use icondata for native apps.") pc.ConsoleIcon = flag.String("consoleicon", "", "Icon to use in console for Web Apps only. Use icondata for native apps.")
pc.ConsoleIconCode = flag.String("icondata", "", "Path to icon for console, which i2p.plugin.native will automatically encode") pc.ConsoleIconCode = flag.String("icondata", "", "Path to icon for console, which i2p.plugin.native will automatically encode")
pc.ConsoleLinkURL = flag.String("consoleurl", "", "URL to use in the router console sidebar")
pc.MinVersion = flag.String("min", "", "Minimum I2P version") pc.MinVersion = flag.String("min", "", "Minimum I2P version")
pc.MaxVerion = flag.String("max", "", "Maximum I2P version") pc.MaxVerion = flag.String("max", "", "Maximum I2P version")
pc.MinJava = flag.String("min-java", "", "Minimum Java version") pc.MinJava = flag.String("min-java", "", "Minimum Java version")