Skip to content

Commit 301be83

Browse files
authored
Merge pull request #20 from timperrett/master
Use -n for the namespace switch (because kubectl has ruined me)
2 parents 09102b2 + 708f9d1 commit 301be83

File tree

1 file changed

+7
-7
lines changed
  • src/github.com/getnelson/nelson

1 file changed

+7
-7
lines changed

src/github.com/getnelson/nelson/main.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ func main() {
438438
Destination: &selectedDatacenter,
439439
},
440440
cli.StringFlag{
441-
Name: "namespaces, ns",
441+
Name: "namespaces, ns, n",
442442
Value: "",
443443
Usage: "Restrict list of units to a particular namespace",
444444
Destination: &selectedNamespace,
@@ -461,7 +461,7 @@ func main() {
461461
return cli.NewExitError("You supplied an argument for 'namespaces' but it was not a valid comma-delimited list.", 1)
462462
}
463463
} else {
464-
return cli.NewExitError("You must supply --namespaces or -ns argument to specify the namesapce(s) as a comma delimted form. i.e. dev,qa,prod or just dev", 1)
464+
return cli.NewExitError("You must supply --namespaces, -ns or -n argument to specify the namesapce(s) as a comma delimted form. i.e. dev,qa,prod or just dev", 1)
465465
}
466466
if len(selectedStatus) > 0 {
467467
if !isValidCommaDelimitedList(selectedStatus) {
@@ -633,7 +633,7 @@ func main() {
633633
Destination: &selectedDatacenter,
634634
},
635635
cli.StringFlag{
636-
Name: "namespaces, ns",
636+
Name: "namespaces, ns, n",
637637
Value: "",
638638
Usage: "Restrict list of units to a particular namespace",
639639
Destination: &selectedNamespace,
@@ -656,7 +656,7 @@ func main() {
656656
return cli.NewExitError("You supplied an argument for 'namespaces' but it was not a valid comma-delimited list.", 1)
657657
}
658658
} else {
659-
return cli.NewExitError("You must supply --namespaces or -ns argument to specify the namesapce(s) as a comma delimted form. i.e. dev,qa,prod or just dev", 1)
659+
return cli.NewExitError("You must supply --namespaces, -ns or -n argument to specify the namesapce(s) as a comma delimted form. i.e. dev,qa,prod or just dev", 1)
660660
}
661661
if len(selectedStatus) > 0 {
662662
if !isValidCommaDelimitedList(selectedStatus) {
@@ -937,7 +937,7 @@ func main() {
937937
Destination: &selectedDatacenter,
938938
},
939939
cli.StringFlag{
940-
Name: "namespaces, ns",
940+
Name: "namespaces, ns, n",
941941
Value: "",
942942
Usage: "Restrict list of loadbalancers to a particular namespace",
943943
Destination: &selectedNamespace,
@@ -954,7 +954,7 @@ func main() {
954954
return cli.NewExitError("You supplied an argument for 'namespaces' but it was not a valid comma-delimited list.", 1)
955955
}
956956
} else {
957-
return cli.NewExitError("You must supply --namespaces or -ns argument to specify the namesapce(s) as a comma delimted form. i.e. dev,qa,prod or just dev", 1)
957+
return cli.NewExitError("You must supply --namespaces, -ns or -n argument to specify the namesapce(s) as a comma delimted form. i.e. dev,qa,prod or just dev", 1)
958958
}
959959

960960
pi.Start()
@@ -1093,7 +1093,7 @@ func main() {
10931093
Destination: &selectedDatacenter,
10941094
},
10951095
cli.StringFlag{
1096-
Name: "namespace, ns",
1096+
Name: "namespace, ns, n",
10971097
Value: "",
10981098
Usage: "The namespace to create",
10991099
Destination: &selectedNamespace,

0 commit comments

Comments
 (0)