Skip to content

Commit 79f631a

Browse files
authored
Merge pull request #64 from srinivas-pokala/main
Add error message feature for cycles.go file,if the command depstat cycles run with any arguments
2 parents 44cfce7 + 5705758 commit 79f631a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cmd/cycles.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ var cyclesCmd = &cobra.Command{
3131
Short: "Prints cycles in dependency chains.",
3232
Long: `Will show all the cycles in the dependencies of the project.`,
3333
RunE: func(cmd *cobra.Command, args []string) error {
34+
35+
if len(args) != 0 {
36+
return fmt.Errorf("cycles does not take any arguments")
37+
}
38+
3439
overview := getDepInfo(nil)
3540
var cycleChains []Chain
3641
var temp Chain

0 commit comments

Comments
 (0)