diff options
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/root.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/root.go b/cmd/root.go index 6b84cd7..fe7a130 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -267,7 +267,8 @@ func readArgsFile(file string, split bool) []string { }() scanner := bufio.NewScanner(f) for scanner.Scan() { - arg := strings.TrimSpace(scanner.Text()) + arg := os.ExpandEnv(strings.TrimSpace(scanner.Text())) + if strings.HasPrefix(arg, "-") && split { args = append(args, regexp.MustCompile(`\s`).Split(arg, 2)...) } else if !split { |