Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions command_run.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,10 @@ func (cmd *Command) run(ctx context.Context, osArgs []string) (_ context.Context
for _, flag := range cmd.allFlags() {
cmd.setMultiValueParsingConfig(flag)
isSet := flag.IsSet()
// Propagate the command's slice/map separator config before PostParse
// so that env-var values are split with the same separator as CLI
// values (see https://github.com/urfave/cli/issues/2262).
cmd.setMultiValueParsingConfig(flag)
if err := flag.PostParse(); err != nil {
return ctx, err
}
Expand Down