@@ -161,9 +161,7 @@ public static void main(String... args) throws Exception {
161161 options .addOption ("b" , "nobump" , false , "Do not perform SSL bumping." );
162162 options .addOption ("j" , "localproxy" , true , "The port to launch the local proxy on (default 8087)" );
163163
164- Option shared = new Option ("s" , "shared" , true , "Share this tunnel among team members. Valid values: all" );
165- shared .setArgName ("all" );
166- options .addOption (shared );
164+ options .addOption ("s" , "shared" , false , "Share this tunnel among team members." );
167165 options .addOption (null , "doctor" , false , "Perform checks to detect possible misconfiguration or problems." );
168166 options .addOption ("v" , "version" , false , "Displays the current version of this program" );
169167
@@ -328,10 +326,6 @@ public static void main(String... args) throws Exception {
328326 }
329327
330328 if (commandLine .hasOption ("shared" )) {
331- String sharedValue = commandLine .getOptionValue ("shared" );
332- if (!"all" .equalsIgnoreCase (sharedValue )) {
333- throw new ParseException ("Invalid value for --shared. Only 'all' is supported." );
334- }
335329 Logger .getLogger (App .class .getName ()).log (Level .INFO , "Tunnel will be shared among team members." );
336330 app .shared = true ;
337331 }
0 commit comments