mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix(climc): avoid panic
This commit is contained in:
@@ -75,7 +75,7 @@ func Executor(s string) {
|
||||
} else {
|
||||
session.GetClient().SetDebug(false)
|
||||
}
|
||||
if subparser.IsHelpSet() {
|
||||
if subparser != nil && subparser.IsHelpSet() {
|
||||
fmt.Print(subparser.HelpString())
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user