@@ -58,7 +58,7 @@ func deletePolicy(ctx *cli.Context) {
58
58
}
59
59
60
60
func listPolicies (ctx * cli.Context ) {
61
- if len (ctx .Args ()) != 1 {
61
+ if len (ctx .Args ()) != 0 {
62
62
errExit (ctx , exitHelp , "More arguments than required" , true )
63
63
}
64
64
@@ -295,7 +295,7 @@ func listNetProfiles(ctx *cli.Context) {
295
295
bandwidth string
296
296
bw []string
297
297
)
298
- if len (ctx .Args ()) != 1 {
298
+ if len (ctx .Args ()) != 0 {
299
299
errExit (ctx , exitHelp , "More arguments than required" , true )
300
300
}
301
301
@@ -464,7 +464,7 @@ func inspectNetwork(ctx *cli.Context) {
464
464
}
465
465
466
466
func listNetworks (ctx * cli.Context ) {
467
- if len (ctx .Args ()) != 1 {
467
+ if len (ctx .Args ()) != 0 {
468
468
errExit (ctx , exitHelp , "More arguments than required" , true )
469
469
}
470
470
@@ -543,7 +543,7 @@ func deleteTenant(ctx *cli.Context) {
543
543
}
544
544
545
545
func listTenants (ctx * cli.Context ) {
546
- if len (ctx .Args ()) != 1 {
546
+ if len (ctx .Args ()) != 0 {
547
547
errExit (ctx , exitHelp , "More arguments than required" , true )
548
548
}
549
549
@@ -619,7 +619,6 @@ func createEndpointGroup(ctx *cli.Context) {
619
619
}
620
620
621
621
func inspectEndpointGroup (ctx * cli.Context ) {
622
- argCheck (1 , ctx )
623
622
624
623
tenant := ctx .String ("tenant" )
625
624
endpointGroup := ctx .Args ()[0 ]
@@ -646,7 +645,7 @@ func deleteEndpointGroup(ctx *cli.Context) {
646
645
}
647
646
648
647
func listEndpointGroups (ctx * cli.Context ) {
649
- if len (ctx .Args ()) != 1 {
648
+ if len (ctx .Args ()) != 0 {
650
649
errExit (ctx , exitHelp , "More arguments than required" , true )
651
650
}
652
651
@@ -752,7 +751,7 @@ func deleteBgp(ctx *cli.Context) {
752
751
//listBgpNeighbors is netctl interface routine to list
753
752
//Bgp neighbor configs for a given host
754
753
func listBgp (ctx * cli.Context ) {
755
- if len (ctx .Args ()) != 1 {
754
+ if len (ctx .Args ()) != 0 {
756
755
errExit (ctx , exitHelp , "More arguments than required" , true )
757
756
}
758
757
@@ -803,7 +802,7 @@ func inspectBgp(ctx *cli.Context) {
803
802
}
804
803
805
804
func showGlobal (ctx * cli.Context ) {
806
- if len (ctx .Args ()) != 1 {
805
+ if len (ctx .Args ()) != 0 {
807
806
errExit (ctx , exitHelp , "More arguments than required" , true )
808
807
}
809
808
@@ -825,7 +824,7 @@ func showGlobal(ctx *cli.Context) {
825
824
}
826
825
827
826
func inspectGlobal (ctx * cli.Context ) {
828
- if len (ctx .Args ()) != 1 {
827
+ if len (ctx .Args ()) != 0 {
829
828
errExit (ctx , exitHelp , "More arguments than required" , true )
830
829
}
831
830
@@ -889,7 +888,7 @@ func dumpInspectList(ctx *cli.Context, list interface{}) {
889
888
}
890
889
891
890
func showVersion (ctx * cli.Context ) {
892
- if len (ctx .Args ()) != 1 {
891
+ if len (ctx .Args ()) != 0 {
893
892
errExit (ctx , exitHelp , "More arguments than required" , true )
894
893
}
895
894
@@ -959,7 +958,7 @@ func deleteAppProfile(ctx *cli.Context) {
959
958
}
960
959
961
960
func listAppProfiles (ctx * cli.Context ) {
962
- if len (ctx .Args ()) != 1 {
961
+ if len (ctx .Args ()) != 0 {
963
962
errExit (ctx , exitHelp , "More arguments than required" , true )
964
963
}
965
964
@@ -1130,7 +1129,7 @@ func listServiceLB(ctx *cli.Context) {
1130
1129
}
1131
1130
1132
1131
func listExternalContracts (ctx * cli.Context ) {
1133
- if len (ctx .Args ()) != 1 {
1132
+ if len (ctx .Args ()) != 0 {
1134
1133
errExit (ctx , exitHelp , "More arguments than required" , true )
1135
1134
}
1136
1135
0 commit comments