All Versions
47
Latest Version
Avg Release Cycle
121 days
Latest Release
1062 days ago
Changelog History
Page 2
Changelog History
Page 2
-
v1.22.3 Changes
March 08, 2020๐ Fixed
- 0๏ธโฃ String flag no longer persists the default value if the flag is explicitly initialized in #981 via @asahasrabuddhe
context.IsSet()
returnstrue
orfalse
correctly regardless of whether the short name or the full name of the flag is passed to it in #978 via @asahasrabuddhe- Hide version if the version is not set by the user in #954 via @asahasrabuddhe
-
v1.22.2 Changes
November 21, 2019๐ Fixed
- ๐ Fix v1.21.0 pass through regression in urfave/cli/pull/872 via @lynncyrin
- ๐ Fix infinite loop when parsing invalid flags for apps with short option handling in urfave/cli/pull/911 via @rliebz
- ๐ Fix zsh autocomplete in urfave/cli/pull/906 via @gnowxilef
- ๐ Fix typo in
DocGenerationFlag.TakesValue()
docstring in urfave/cli/pull/902 via @benmoose - Avoid panic for missing flag value in urfave/cli/pull/893 via @rliebz
๐ Changed
- ๐จ Simplify
HelpPrinter
andCustomHelpPrinter
behaviors in urfave/cli/pull/912 via @rliebz
-
v1.22.1 Changes
September 11, 2019๐ ๐ง Watch out! There's a known regression in this release! #850 ๐ง
๐ Fixed
- Hide output of hidden commands on man pages in urfave/cli/pull/889 via @crosbymichael
- Don't generate fish completion for hidden commands urfave/cli/pull/891 via @saschagrunert
- Using short flag names for required flags throws an error in urfave/cli/pull/890 via @asahasrabuddhe
๐ Changed
- โ Remove flag code generation logic, legacy python test runner in urfave/cli/pull/883 via @asahasrabuddhe
- ๐ Enable Go Modules support, drop support for
Go 1.10
add support forGo 1.13
in urfave/cli/pull/885 via @asahasrabuddhe
-
v1.22.0 Changes
September 07, 2019๐ ๐ง Watch out! There's a known regression in this release! #850 ๐ง
๐ Fixed
- ๐ Fix Subcommands not falling back to
app.ExitEventHandler
in urfave/cli/pull/856 via @FaranIdo
๐ Changed
- ๐ Clarify that altsrc supports both TOML and JSON in urfave/cli/pull/774 via @whereswaldon
- Made the exit code example more clear in urfave/cli/pull/823 via @xordspar0
- โ Removed the use of python for internal flag generation in urfave/cli/pull/836 via @asahasrabuddhe
- ๐ Changed the supported go versions to
1.10
,1.11
,1.12
in urfave/cli/pull/843 via @lafriks - ๐ Changed the v1 releases section in the readme in urfave/cli/pull/862 via @russoj88
- Cleaned up go modules in urfave/cli/pull/874 via @saschagrunert
โ Added
- โ Added
UseShortOptionHandling
for combining short flags in urfave/cli/pull/735 via @rliebz - โ Added support for flags bash completion in urfave/cli/pull/808 via @yogeshlonkar
- โ Added the
TakesFile
indicator to flag in urfave/cli/pull/851 via @saschagrunert - โ Added fish shell completion support in urfave/cli/pull/848 via @saschagrunert
- ๐ Fix Subcommands not falling back to
-
v1.21.0 Changes
August 02, 2019๐ Fixed
- ๐ Fix using "slice" flag types with
EnvVar
in urfave/cli/pull/687 via @joshuarubin - ๐ Fix regression of
SkipFlagParsing
behavior in urfave/cli/pull/697 via @jszwedko - ๐ Fix handling
ShortOptions
andSkipArgReorder
in urfave/cli/pull/686 via @baude - ๐ Fix args reordering when bool flags are present in urfave/cli/pull/712 via @windler
- ๐ Fix parsing of short options in urfave/cli/pull/758 via @vrothberg
- ๐ Fix unaligned indents for the command help messages in urfave/cli/pull/806 via @mingrammer
๐ Changed
- Cleaned up help output in urfave/cli/pull/664 via @maguro
- โ Remove redundant nil checks in urfave/cli/pull/773 via @teresy
- Case is now considered when sorting strings in urfave/cli/pull/676 via @rliebz
โ Added
- Added "required flags" support in urfave/cli/pull/819 via @lynncyrin
- Backport JSON
InputSource
to v1 in urfave/cli/pull/598 via @jszwedko - ๐ Allow more customization of flag help strings in urfave/cli/pull/661 via @rliebz
- ๐ Allow custom
ExitError
handler function in urfave/cli/pull/628 via @phinnaeus - ๐ Allow loading a variable from a file in urfave/cli/pull/675 via @jmccann
- ๐ Allow combining short bool names in urfave/cli/pull/684 via @baude
- โ Added test coverage to context in urfave/cli/pull/788 via @benzvan
- โ Added go module support in urfave/cli/pull/831 via @saschagrunert
- ๐ Fix using "slice" flag types with
-
v1.20.0 Changes
August 11, 2017๐ Fixed
HandleExitCoder
is now correctly iterates over all errors in aMultiError
. The exit code is the exit code of the last error or1
if there are noExitCoder
s in theMultiError
.- ๐ Fixed YAML file loading on Windows (previously would fail validate the file path)
- Subcommand
Usage
,Description
,ArgsUsage
,OnUsageError
correctly propogated ErrWriter
is now passed downwards through command structure to avoid the need to redefine it- Pass
Command
context intoOnUsageError
rather than parent context so that all fields are avaiable - ๐จ Errors occuring in
Before
funcs are no longer double printed - ๐ Use
UsageText
in the help templates for commands and subcommands if defined; otherwise build the usage as before (was previously ignoring this field) IsSet
andGlobalIsSet
now correctly return whether a flag is set if a program callsSet
orGlobalSet
directly after flag parsing (would previously only returntrue
if the flag was set during parsing)
๐ Changed
- No longer exit the program on command/subcommand error if the error raised is
not an
OsExiter
. This exiting behavior was introduced in 1.19.0, but was determined to be a regression in functionality. See the PR for discussion.
โ Added
CommandsByName
type was added to make it easy to sortCommand
s by name, alphabeticallyaltsrc
now handles loading of string and int arrays from TOML- ๐ Support for definition of custom help templates for
App
viaCustomAppHelpTemplate
- ๐ Support for arbitrary key/value fields on
App
to be used withCustomAppHelpTemplate
viaExtraInfo
HelpFlag
,VersionFlag
, andBashCompletionFlag
changed to explictly becli.Flag
s allowing for the use of custom flags satisfying thecli.Flag
interface to be used.
-
v1.19.1 Changes
November 22, 2016๐ Fixed
- ๐ Fixes regression introduced in 1.19.0 where using an
ActionFunc
as theAction
for a command would cause it to error rather than calling the function. Should not have a affected declarative cases usingfunc(c *cli.Context) err)
. - Shell completion now handles the case where the user specifies
--generate-bash-completion
immediately after a flag that takes an argument. Previously it call the application with--generate-bash-completion
as the flag value.
- ๐ Fixes regression introduced in 1.19.0 where using an
-
v1.19.0 Changes
November 19, 2016โ Added
FlagsByName
was added to make it easy to sort flags (e.g.sort.Sort(cli.FlagsByName(app.Flags))
)- A
Description
field was added toApp
for a more detailed description of
the application (similar to the existingDescription
field onCommand
) - Flag type code generation via
go generate
- Write to stderr and exit 1 if action returns non-nil error
- โ Added support for TOML to the
altsrc
loader SkipArgReorder
was added to allow users to skip the argument reordering.
This is useful if you want to consider all "flags" after an argument as
0๏ธโฃ arguments rather than flags (the default behavior of the stdlibflag
library). This is backported functionality from the removal of the flag
๐ reordering in the unreleased version
2- For formatted errors (those implementing
ErrorFormatter
), the errors will
be formatted during output. Compatible withpkg/errors
.
๐ Changed
- โ Raise minimum tested/supported Go version to 1.2+
๐ Fixed
- Consider empty environment variables as set (previously environment variables
with the equivalent of""
would be skipped rather than their value used). - ๐ Return an error if the value in a given environment variable cannot be parsed
as the flag type. Previously these errors were silently swallowed. - ๐จ Print full error when an invalid flag is specified (which includes the invalid flag)
- 0๏ธโฃ
App.Writer
defaults tostdout
whennil
- ๐จ If no action is specified on a command or app, the help is now printed instead of
panic
ing - ๐
App.Metadata
is initialized automatically now (previously wasnil
unless initialized) - Correctly show help message if
-h
is provided to a subcommand context.(Global)IsSet
now respects environment variables. Previously it
would returnfalse
if a flag was specified in the environment rather than
as an argument- โ Removed deprecation warnings to STDERR to avoid them leaking to the end-user
- โก๏ธ
altsrc
s import paths were updated to usegopkg.in/urfave/cli.v1
. This
๐ fixes issues that occurred whengopkg.in/urfave/cli.v1
was imported as well
asaltsrc
where Go would complain that the types didn't match
-
v1.18.1 Changes
August 29, 2016๐ Fixed
- โ Removed deprecation warnings to STDERR to avoid them leaking to the end-user (backported)
-
v1.18.0 Changes
June 28, 2016โ Added
- โ
./runtests
test runner with coverage tracking by default - โ testing on OS X
- ๐ testing on Windows
- ๐
UintFlag
,Uint64Flag
, andInt64Flag
types and supporting code
๐ Changed
- ๐ Use spaces for alignment in help/usage output instead of tabs, making the
output alignment consistent regardless of tab width
๐ Fixed
- ๐จ Printing of command aliases in help text
- ๐จ Printing of visible flags for both struct and struct pointer flags
- Display the
help
subcommand when usingCommandCategories
- No longer swallows
panic
s that occur within theAction
s themselves when
detecting the signature of theAction
field
- โ