Prevent config-file default repeating in help (#2083)
## Description Previously the help output looked like: ``` --config-file string config file location (default is $HOME/.corso.toml) (default "$HOME/.corso.toml") ``` ## Does this PR need a docs update or release note? - [ ] ✅ Yes, it's included - [ ] 🕐 Yes, but in a later PR - [x] ⛔ No ## Type of change <!--- Please check the type of change your PR introduces: ---> - [ ] 🌻 Feature - [ ] 🐛 Bugfix - [ ] 🗺️ Documentation - [ ] 🤖 Test - [ ] 💻 CI/Deployment - [x] 🧹 Tech Debt/Cleanup ## Issue(s) <!-- Can reference multiple issues. Use one of the following "magic words" - "closes, fixes" to auto-close the Github issue. --> * #<issue> ## Test Plan <!-- How will this be tested prior to merging.--> - [x] 💪 Manual - [ ] ⚡ Unit test - [ ] 💚 E2E
This commit is contained in:
parent
7c402edca4
commit
634780a189
@ -68,7 +68,7 @@ func AddConfigFlags(cmd *cobra.Command) {
|
|||||||
&configFilePathFlag,
|
&configFilePathFlag,
|
||||||
"config-file",
|
"config-file",
|
||||||
displayDefaultFP,
|
displayDefaultFP,
|
||||||
"config file location (default is $HOME/.corso.toml)")
|
"config file location")
|
||||||
}
|
}
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------------------------------------
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user