Skip to content

gunshi / default / ArgOptionSchema

Interface: ArgOptionSchema

An option schema for an argument. This schema is similar to the schema of the node:utils. difference is that:

  • multiple property is not supported
  • required property and description property are added
  • default property type, not support multiple types

Properties

PropertyTypeDescription
default?string | number | booleanThe default value of the argument.
description?stringA description of the argument.
required?trueWhether the argument is required or not.
short?stringA single character alias for the option.
type"string" | "number" | "boolean"Type of argument.

Released under the MIT License.