Skip to content

Latest commit

 

History

History
41 lines (27 loc) · 791 Bytes

cli.md

File metadata and controls

41 lines (27 loc) · 791 Bytes

CLI

{id: cli}

ARGV

{id: argv} {i: ARGV}

  • The raw values from the command line can be found in the ARGV array.

Usage statement and exit

{id: usage-statement-and-exit}

Command line Option Parser (argparse, GetOpts)

{id: option-parser} {i: option_parser} {i: OptionParser}

  • cli_parser.cr -d code-maven.com -v
  • cli_parser.cr -d
  • cli_parser.cr -x

Pass parameters to OptionParser

{id: parameters-for-option-parser}

Order of parsing

{id: order-of-parsing}