diff --git a/pkg/utils/utils.go b/pkg/utils/utils.go
index 19c69a70ac0c62b5cbc92109959f3bdfcca11d2c..7f73e638b2e3f1b4b04eeb92e59161e5432246e4 100644
--- a/pkg/utils/utils.go
+++ b/pkg/utils/utils.go
@@ -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:], ",")))