import { Validator } from "https://deno.land/x/denomander@0.9.3/docs.ts";
It is responsible for validating the arguments and throw the related error
Constructors
Constructor of the Validator object
Properties
Holds the app instance
Holds the Arguments instance
The array of rules for validation
Methods
It maps through all validations and returns the ones that didn't pass
Validates if there are non decleared commands
Validates if there are non decleared options
It runs all the validations passed as ValidationRules
Validates the .action() parameters and sends them to the callback
Validates if there are non decleared arguments
Validates the .on() commands and stacks them in the available commands
Validates if the required options are defined
Validates all the commands which needs required values to be defined
It starts the validation process and throws the first error