We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60a147d commit 6f956d6Copy full SHA for 6f956d6
internal/command/apply.go
@@ -87,12 +87,10 @@ func (c *ApplyCommand) Run(cmd *cobra.Command, args []string) error {
87
envOrSheetName := args[0]
88
var commandArgs []string
89
90
- // Find the separator "--" and split command args
91
- for i, arg := range args {
92
- if arg == "--" {
93
- if i+1 < len(args) {
94
- commandArgs = args[i+1:]
95
- }
+ // Get all original arguments from os.Args
+ for i, arg := range os.Args {
+ if arg == "--" && i < len(os.Args)-1 {
+ commandArgs = os.Args[i+1:]
96
break
97
}
98
0 commit comments