Skip to content

Commit 2252fc6

Browse files
committed
fix(cli): passthru cli empty string args (#7301)
Close #771 --- ### Changes are visible to end-users: yes - Searched for relevant documentation and updated as needed: yes - Breaking change (forces users to change their own code or config): no - Suggested release notes appear below: yes Fix the use of cli empty-string arguments. ### Test plan - Manual testing; please provide instructions so we can reproduce: passed `""` to various CLI commands and verified it gets passed into the command code GitOrigin-RevId: 08aa6c34918dd9858a4124e77274fd816745c0cd
1 parent e270b50 commit 2252fc6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/aspect/root/flags/interceptor.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ func FlagsInterceptor(streams ioutils.Streams) interceptors.Interceptor {
6060
doubleDash := false
6161
for _, arg := range args {
6262
if arg == "" {
63+
forwardArgs = append(forwardArgs, arg)
6364
continue
6465
}
6566
if arg == "--" {

0 commit comments

Comments
 (0)