Skip to content

Commit

Permalink
clean cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
mhewedy committed May 9, 2020
1 parent 0d92aff commit 1a1ad9a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/remove.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ var removeCmd = &cobra.Command{
}
},
Args: func(cmd *cobra.Command, args []string) error {
if len(args) != 1 {
if len(args) < 1 {
return errors.New("vm required")
}
return nil
Expand Down
2 changes: 1 addition & 1 deletion cmd/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ var startCmd = &cobra.Command{
}
},
Args: func(cmd *cobra.Command, args []string) error {
if len(args) != 1 {
if len(args) < 1 {
return errors.New("vm required")
}
return nil
Expand Down
2 changes: 1 addition & 1 deletion cmd/stop.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ var stopCmd = &cobra.Command{
}
},
Args: func(cmd *cobra.Command, args []string) error {
if len(args) != 1 {
if len(args) < 1 {
return errors.New("vm required")
}
return nil
Expand Down

0 comments on commit 1a1ad9a

Please sign in to comment.