| commit | e82ce8f3af113ac6d0afb44bab30fcdef71afcc0 | [log] [tgz] |
|---|---|---|
| author | Marc-Antoine Ruel <maruel@gmail.com> | Thu Feb 04 22:50:16 2021 |
| committer | Marc-Antoine Ruel <maruel@gmail.com> | Thu Feb 04 23:59:47 2021 |
| tree | f73a378ae408a688c70a1b862a6b7425cee787b5 | |
| parent | 9c2bbaba0d70de28cb39a9edf339dd560410cf04 [diff] |
Export Usage(); enable subcommand usability It requires a hack if the user wants to capture help's -advanced flag. Other than that, it works fine. Updated sample-complex and added extensive help test to confirm the output. Fix incorrect CI test on before 1.15 because of a copy paste error.
This package permits a Go application to implement subcommands support similar to what is supported by the ‘go’ tool.
The library is designed so that the test cases can run concurrently. Using global flags variables is discouraged to keep your program testable concurrently.
The intended command is found via heuristic search;
lo will run longcommand as long as there's no command with the same prefix.longcmmand or longcmomand will properly trigger longcommand.