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.

an be used like:

printGetopt("Usage", "Options", help.options, "CustomOptions", customArray, customOption("opt", "-h"));
void
printGetopt
(
S...
)
()

Parameters

S

Can be either std.getopt.Option[], std.getopt.Option or string

Meta