-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Frederic BIDON <[email protected]>
- Loading branch information
Showing
2 changed files
with
30 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# About CLI flags | ||
|
||
There are many existing CLI flag handling libraries out there. | ||
|
||
The most popular one by a mile is `github.com/spf13/pflag` (originally forked from `githb.com/ogier/pflag`). | ||
|
||
It is used by other very popular packages `spf13/viper` and `spf13/cobra`. | ||
|
||
The second most popular (by number of imports by public repositories) is `github.com/jessevdk/go-flags`. | ||
|
||
The approach proposed by our package is built on top `github.com/spf13/pflag` and remains interoperable with other | ||
great CLI-building libraries such as `viper` and `cobra`. | ||
|
||
[Various packages and approaches to dealing with flags](./approaches.md) |