diff --git a/main.go b/main.go index 2cdb8ed..d20090c 100644 --- a/main.go +++ b/main.go @@ -178,6 +178,16 @@ var commands = []Command{ IsVarargs: false, Action: func(requiredArguments []string, arguments []string) (string, error) { + if len(arguments) != len(requiredArguments) { + return "", fmt.Errorf("expected %s", requiredArguments[0]) + } + + if gameError := WithGame(arguments[0], func(game *Game) error { + return game.CleanDeployedMods() + }); gameError != nil { + return "", gameError + } + return "cleaned", nil }, },