Felix Lange 72cbb3db6a Call FlagStringer in String() method of slice flags
The default help template relies on the String() method of Flag
to render the flag. For most flag types, String() indirects through
FlagStringer, so that is the best place to customize flag rendering.

FlagStringer was not called for slice flags because their help output
differs from other flags in two ways: there can be multiple default
values, and the flag name is shown two times to indicate that the flag
can be specified multiple times.

To make multiple values work in the FlagStringer, I simply changed
GetValue() to return all values.

Showing the flag more than once is achieved through a new interface,
DocGenerationSliceFlag, which the FlagStringer uses to decide whether
the flag is a slice flag type.
2022-09-30 15:01:22 +02:00
2022-09-12 13:40:37 -04:00
2022-09-21 18:28:31 -04:00
2022-05-06 22:23:17 -04:00
2022-04-23 22:07:16 -04:00
2022-09-20 16:15:59 +08:00
2022-09-20 16:15:59 +08:00
2021-04-05 07:57:41 -04:00
2022-09-16 00:07:12 +09:00
2022-09-16 00:07:12 +09:00
2022-09-16 00:07:12 +09:00
2022-09-16 00:07:12 +09:00
2022-09-16 00:07:12 +09:00
2022-09-16 00:07:12 +09:00
2022-09-16 00:07:12 +09:00
2022-09-16 00:07:12 +09:00
2022-09-16 00:07:12 +09:00
2022-09-16 00:07:12 +09:00
2022-09-16 00:07:12 +09:00
2022-09-06 08:48:56 -04:00
2022-09-06 08:48:56 -04:00
2022-09-29 11:24:42 -04:00
2022-08-14 16:10:39 -08:00
2020-03-03 13:06:34 +01:00
2022-06-13 08:23:41 +10:00
2022-06-13 08:23:41 +10:00
2022-06-13 08:23:41 +10:00
2019-09-13 05:17:24 +05:30
2019-09-13 05:17:24 +05:30
2022-07-29 15:26:06 +08:00
2022-09-10 08:55:33 -04:00

cli

GoDoc codebeat Go Report Card codecov

cli is a simple, fast, and fun package for building command line apps in Go. The goal is to enable developers to write fast and distributable command line applications in an expressive way.

Documentation

More documentation is available in ./docs or the hosted documentation site at https://cli.urfave.org.

License

See LICENSE

Description
No description provided
Readme 7 MiB
Languages
Go 99.5%
Makefile 0.3%
Shell 0.1%