exact check for number of args
This commit is contained in:
parent
ea5ffaa4e2
commit
a35ab76c22
2
add.go
2
add.go
@ -9,7 +9,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func Add() {
|
func Add() {
|
||||||
if len(os.Args) <= 2 {
|
if len(os.Args) != 3 {
|
||||||
// TODO non-red
|
// TODO non-red
|
||||||
ExitFail("Hostname argument required: dsnet add <hostname>")
|
ExitFail("Hostname argument required: dsnet add <hostname>")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user