printGetopt

Prints passed **Option**s and text in aligned manner on stdout, i.e:

A simple cli tool

Usage: 
  scli [options] [script] \
  scli run [script]

Options: 
  -h, --help   This help information. \
  -c, --check  Check syntax without running. \
  --quiet      Run silently (no output). 
Commands:
  run          Runs script. \
  compile      Compiles script.
void
printGetopt
(
string text
,
string usage
,,
Option[] opt
)

Parameters

text string

Text to be printed at the beginning of the help output

usage string

Usage string

com Commands[]

Commands

opt Option[]

The **Option** extracted from the **getopt** parameter

Meta