Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Files

Latest commit

cd5d38b · Sep 21, 2018

History

History
12 lines (9 loc) · 785 Bytes

README.md

File metadata and controls

12 lines (9 loc) · 785 Bytes

MCLBOT type configuration

This folder contains the files for each type the argument parser will validate the input against. The filename represents the type name.

file parameters

  • parse() the actual validation function which should return the parse outcome or an error object if the validation fails. The following arguments will be passed:
    • value the input word as string (or a multi-word string if entered by the user)
    • argument argument options that have been set in the respective command file
    • context the context object, see the context documentation
  • default() a value or a function that will be executed if optional has been set to true in the command file, passed arguments:
    • context the context object, see context.md