Documentation ¶
Overview ¶
Package args implemets the commandline interface and calls the appropriate commands.
Package args implemets the commandline interface and calls the appropriate commands.
Package args implements the commandline interface and calls the appropriate commands. Its function Handler is called in package main as entry point.
Example (HandlerNone) ¶
fn := func() { msg.OnErr(Handler([]string{"trice", ""})) } act := tst.CaptureStdOut(fn) fmt.Print(act)
Output: try: 'trice help|h'
Example (WrongSubcommand) ¶
fn := func() { msg.OnErr(Handler([]string{"trice", "xyz"})) } act := tst.CaptureStdOut(fn) fmt.Print(act)
Output: try: 'trice help|h'
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Version is the program version number and is injected from main package. Version string // Commit is the program checksum and injected from main package. Commit string // Date is the compile time and injected from main package. Date string )
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.