@@ -26,8 +26,11 @@ pub(crate) struct CliOptions {
2626 #[ clap( long, default_value="127.0.0.1" , display_order=0 ) ]
2727 ip : String ,
2828
29- /// Select connection target
30- #[ clap( long, value_enum, default_value="game" , display_order=1 ) ]
29+ /// Select connection target.
30+ /// - game - connect to the standalone game running with debug arguments,
31+ /// - editor - connect to the game running in the REDkit editor,
32+ /// - auto - try connecting to either the standalone game or one running in REDkit
33+ #[ clap( long, value_enum, default_value="auto" , display_order=1 , verbatim_doc_comment) ]
3134 target : ConnectionTarget ,
3235
3336 /// The maximum amount of milliseconds that program should wait for the game to respond.
@@ -51,10 +54,12 @@ pub(crate) struct CliOptions {
5154
5255#[ derive( Debug , ArgEnum , Clone , Copy , PartialEq , Eq ) ]
5356enum ConnectionTarget {
54- /// Connect to the game running on its own
57+ /// Connect to the standalone game running with debug arguments.
5558 Game ,
56- /// Connect to the game running through REDkit editor
57- Editor
59+ /// Connect to the game running through the REDkit editor.
60+ Editor ,
61+ /// Try connecting to either the standalone game or one running through REDkit.
62+ Auto
5863}
5964
6065#[ derive( Debug , ArgEnum , Clone , Copy , PartialEq , Eq ) ]
0 commit comments