Skip to content

Commit b5eeaf5

Browse files
committed
catch bad flag input case in 'cloud server clone'
1 parent 12a7e7c commit b5eeaf5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmd/cloudServerClone.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ Server is not on a Private Parent.`,
6161
if privateParentFlag != "" && configIdFlag != -1 {
6262
lwCliInst.Die(fmt.Errorf("cant pass both --config_id and --private-parent flags"))
6363
}
64+
if privateParentFlag == "" && configIdFlag == -1 {
65+
lwCliInst.Die(fmt.Errorf("must pass --config_id or --private-parent"))
66+
}
6467

6568
var privateParentUniqId string
6669
if privateParentFlag != "" {

0 commit comments

Comments
 (0)