Skip to content
Merged
Changes from 1 commit
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: 3 additions & 1 deletion cli/azd/cmd/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -1007,7 +1007,9 @@ func extractGlobalArgs() []string {
var result []string
globalFlagSet.VisitAll(func(f *pflag.Flag) {
if f.Changed {
result = append(result, fmt.Sprintf("--%s", f.Name), f.Value.String())
// Use --flag=value syntax to avoid ambiguity. The two-arg form (--flag value)
// doesn't work for boolean flags, where the value is treated as a positional arg.
result = append(result, fmt.Sprintf("--%s=%s", f.Name, f.Value.String()))
Comment thread
JeffreyCA marked this conversation as resolved.
}
})
return result
Expand Down
Loading