mirror of
https://github.com/spf13/cobra
synced 2025-05-05 21:07:24 +00:00
Operate on the actual parameter rather than its name
This commit is contained in:
parent
9ef456ac44
commit
a4e3f46f1e
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ func getLicense() License {
|
||||||
// If user wants to have custom license, use that.
|
// If user wants to have custom license, use that.
|
||||||
if viper.IsSet("license.header") || viper.IsSet("license.text") {
|
if viper.IsSet("license.header") || viper.IsSet("license.text") {
|
||||||
return License{Header: viper.GetString("license.header"),
|
return License{Header: viper.GetString("license.header"),
|
||||||
Text: "license.text"}
|
Text: viper.GetString("license.text")}
|
||||||
}
|
}
|
||||||
|
|
||||||
// If user wants to have built-in license, use that.
|
// If user wants to have built-in license, use that.
|
||||||
|
|
Loading…
Add table
Reference in a new issue