cmds/commands: Add --continue flag to attach
Add --continue as a valid flag for the attach command by decorating attachCommand with the continueOnStart variable. Fixes #1995
This commit is contained in:
parent
00aab8d690
commit
b13fe990bd
@ -139,6 +139,7 @@ option to let the process continue or kill it.
|
|||||||
},
|
},
|
||||||
Run: attachCmd,
|
Run: attachCmd,
|
||||||
}
|
}
|
||||||
|
attachCommand.Flags().BoolVar(&continueOnStart, "continue", false, "Continue the debugged process on start.")
|
||||||
rootCommand.AddCommand(attachCommand)
|
rootCommand.AddCommand(attachCommand)
|
||||||
|
|
||||||
// 'connect' subcommand.
|
// 'connect' subcommand.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user