Skip to content

Commit

Permalink
Fix auto-insert of -- for mlr -s feature (forgotten on previous commit)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnkerl committed Nov 24, 2021
1 parent d9dbb1e commit c449c32
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/pkg/climain/mlrcli_shebang.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ func maybeInterpolateDashS(args []string) []string {
for _, argFromFile := range argsFromFile {
newArgs = append(newArgs, argFromFile)
}

// So people can have verb-chains in their shebang file and flags like
// --icsv --ojson after
newArgs = append(newArgs, "--")

for _, remainingArg := range remainingArgs {
newArgs = append(newArgs, remainingArg)
}
Expand Down
1 change: 1 addition & 0 deletions todo.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ PUNCHDOWN LIST
- all-contribs: twi dm
- license triple-checks
- `mlr put` -> coverart
- #756 octal
- 0b1011 olh/webdoc
- rtd links somewhere

Expand Down

0 comments on commit c449c32

Please sign in to comment.