@@ -153,7 +153,7 @@ known, it can be explicitly provided to attach via the command-line, e.g.
153153      return  null ;
154154    }
155155    try  {
156-       return  int .parse (stringArg ('debug-port' ));
156+       return  int .parse (stringArgDeprecated ('debug-port' ));
157157    } on  Exception  catch  (error) {
158158      throwToolExit ('Invalid port for `--debug-port`: $error ' );
159159    }
@@ -163,9 +163,9 @@ known, it can be explicitly provided to attach via the command-line, e.g.
163163    if  (argResults['debug-url' ] ==  null ) {
164164      return  null ;
165165    }
166-     final  Uri  uri =  Uri .tryParse (stringArg ('debug-url' ));
166+     final  Uri  uri =  Uri .tryParse (stringArgDeprecated ('debug-url' ));
167167    if  (uri ==  null ) {
168-       throwToolExit ('Invalid `--debug-url`: ${stringArg ('debug-url' )}' );
168+       throwToolExit ('Invalid `--debug-url`: ${stringArgDeprecated ('debug-url' )}' );
169169    }
170170    if  (! uri.hasPort) {
171171      throwToolExit ('Port not specified for `--debug-url`: $uri ' );
@@ -174,10 +174,10 @@ known, it can be explicitly provided to attach via the command-line, e.g.
174174  }
175175
176176  String  get  appId {
177-     return  stringArg ('app-id' );
177+     return  stringArgDeprecated ('app-id' );
178178  }
179179
180-   String  get  userIdentifier =>  stringArg (FlutterOptions .kDeviceUser);
180+   String  get  userIdentifier =>  stringArgDeprecated (FlutterOptions .kDeviceUser);
181181
182182  @override 
183183  Future <void > validateCommand () async  {
@@ -255,7 +255,7 @@ known, it can be explicitly provided to attach via the command-line, e.g.
255255
256256    if  (debugPort ==  null  &&  debugUri ==  null ) {
257257      if  (device is  FuchsiaDevice ) {
258-         final  String  module =  stringArg ('module' );
258+         final  String  module =  stringArgDeprecated ('module' );
259259        if  (module ==  null ) {
260260          throwToolExit ("'--module' is required for attaching to a Fuchsia device" );
261261        }
@@ -370,7 +370,7 @@ known, it can be explicitly provided to attach via the command-line, e.g.
370370            signals:  globals.signals,
371371            processInfo:  globals.processInfo,
372372            reportReady:  boolArg ('report-ready' ),
373-             pidFile:  stringArg ('pid-file' ),
373+             pidFile:  stringArgDeprecated ('pid-file' ),
374374          )
375375            ..registerSignalHandlers ()
376376            ..setupTerminal ();
@@ -418,7 +418,7 @@ known, it can be explicitly provided to attach via the command-line, e.g.
418418    final  FlutterDevice  flutterDevice =  await  FlutterDevice .create (
419419      device,
420420      target:  targetFile,
421-       targetModel:  TargetModel (stringArg ('target-model' )),
421+       targetModel:  TargetModel (stringArgDeprecated ('target-model' )),
422422      buildInfo:  buildInfo,
423423      userIdentifier:  userIdentifier,
424424      platform:  globals.platform,
@@ -437,8 +437,8 @@ known, it can be explicitly provided to attach via the command-line, e.g.
437437          target:  targetFile,
438438          debuggingOptions:  debuggingOptions,
439439          packagesFilePath:  globalResults['packages' ] as  String ,
440-           projectRootPath:  stringArg ('project-root' ),
441-           dillOutputPath:  stringArg ('output-dill' ),
440+           projectRootPath:  stringArgDeprecated ('project-root' ),
441+           dillOutputPath:  stringArgDeprecated ('output-dill' ),
442442          ipv6:  usesIpv6,
443443          flutterProject:  flutterProject,
444444        )
0 commit comments