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:
Darren Rambaud 2020-04-09 20:51:00 -05:00 committed by Derek Parker
parent 00aab8d690
commit b13fe990bd

@ -139,6 +139,7 @@ option to let the process continue or kill it.
},
Run: attachCmd,
}
attachCommand.Flags().BoolVar(&continueOnStart, "continue", false, "Continue the debugged process on start.")
rootCommand.AddCommand(attachCommand)
// 'connect' subcommand.