Commit 639ff890 authored by Naor Peled's avatar Naor Peled
Browse files

initial commit

parent 935a1ea1
No related merge requests found
Showing with 4 additions and 0 deletions
+4 -0
......@@ -35,6 +35,10 @@ func (s normalize) indent() normalize {
}
func ValidateStdinPathArgument(paths []string) error {
if len(paths) < 1 {
return fmt.Errorf("This command requires at least 1 argument.\n")
}
if paths[0] == "-" {
if len(paths) > 1 {
return fmt.Errorf(fmt.Sprintf("Unexpected args: [%s]", strings.Join(paths[1:], ",")))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment