Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 752 Bytes

File metadata and controls

23 lines (19 loc) · 752 Bytes

Flaget

Tiny CLI flag/argument parser. Supports all standard CLI flag formats.

Features

  • Short -f and long --flag flags
  • Grouped short boolean flags -xyz
  • Values via --key=value or --key value
  • Multi-value flags via array option
  • Negated flags --no-color
  • Boolean-only flags via boolean option
  • Named and variadic (...rest) positional arguments via args option
  • Short-to-long mapping via alias option
  • Auto-casts numbers and booleans from values
  • Default values via default option
  • Dashed keys also available as camelCase
  • Captures arguments before and after -- terminator

See full documentation.