mirror of
https://github.com/clearlinux/docker.git
synced 2026-08-26 18:17:24 +00:00
Merge pull request #11316 from ahmetalpbalkan/win-cli/help-homepath-fix
Make use of %USERPROFILE% in cli help message
This commit is contained in:
+4
-8
@@ -506,15 +506,11 @@ func Set(name, value string) error {
|
||||
// otherwise, the default values of all defined flags in the set.
|
||||
func (f *FlagSet) PrintDefaults() {
|
||||
writer := tabwriter.NewWriter(f.Out(), 20, 1, 3, ' ', 0)
|
||||
var home string
|
||||
if runtime.GOOS != "windows" {
|
||||
// Only do this on non-windows systems
|
||||
home = homedir.Get()
|
||||
home := homedir.Get()
|
||||
|
||||
// Don't substitute when HOME is /
|
||||
if home == "/" {
|
||||
home = ""
|
||||
}
|
||||
// Don't substitute when HOME is /
|
||||
if runtime.GOOS != "windows" && home == "/" {
|
||||
home = ""
|
||||
}
|
||||
f.VisitAll(func(flag *Flag) {
|
||||
format := " -%s=%s"
|
||||
|
||||
Reference in New Issue
Block a user