fix description generation, command generation
This commit is contained in:
@ -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 == "" {
|
||||||
|
@ -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")
|
||||||
|
Reference in New Issue
Block a user