Skip to content

Commit

Permalink
adding cli options
Browse files Browse the repository at this point in the history
  • Loading branch information
Mzack9999 committed Feb 22, 2024
1 parent 212326d commit b970804
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions detach/detach.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func Run(f func() error) error {
return f()
}

cmd := exec.Command(os.Args[0], DetachArg)
cmd := exec.Command(os.Args[0], append(os.Args[1:], DetachArg)...)

return cmd.Start()
}
Expand All @@ -63,7 +63,7 @@ func RunSingleFlight(f func() error) error {
return f()
}

cmd := exec.Command(os.Args[0], DetachArg)
cmd := exec.Command(os.Args[0], append(os.Args[1:], DetachArg)...)

return cmd.Start()
}

0 comments on commit b970804

Please sign in to comment.