Skip to content

Commit dca652c

Browse files
committed
adjsut CLI interface
1 parent 517fff1 commit dca652c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/go-timeout/main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ import (
1515
func main() {
1616
optKillAfter := getopt.StringLong("kill-after", 'k', "", "also send a KILL signal if COMMAND is still running. this long after the initial signal was sent")
1717
optSig := getopt.StringLong("signal", 's', "", "specify the signal to be sent on timeout. IGNAL may be a name like 'HUP' or a number. see 'kill -l' for a list of signals")
18-
optForeground := getopt.BoolLong("foreground", 'f', "when not running timeout directly from a shell prompt, allow COMMAND to read from the TTY and get TTY signals. in this mode, children of COMMAND will not be timed out")
19-
p := getopt.BoolLong("preserve-status", 0, "help message for bool")
18+
optForeground := getopt.BoolLong("foreground", 0, "when not running timeout directly from a shell prompt, allow COMMAND to read from the TTY and get TTY signals. in this mode, children of COMMAND will not be timed out")
19+
p := getopt.BoolLong("preserve-status", 0, "exit with the same status as COMMAND, even when the command times out")
2020

2121
opts := getopt.CommandLine
2222
opts.Parse(os.Args)

0 commit comments

Comments
 (0)