title: How to pass command line parameters to 'pub upgrade' from flutter
body: <p>I am getting an error when running 'flutter pub upgrade'.</p>
  
  <pre><code>HTTP error 404: Not Found
  package:pub/src/http.dart 218:5  _ThrowingClient.send
  
  This is an unexpected error. Please run
      pub --trace '--verbosity=warning' upgrade --no-precompile
  and include the logs in an issue on https://github.com/dart-lang/pub/issues/new
  </code></pre>
  
  <p>Trying to add the respective parameters does not work because I am using:
  flutter pub upgrade. </p>
  
  <p>Is there a possibility to add command line parameters to '<strong>flutter pub upgrade</strong>' which are then passed over to '<strong>pub upgrade</strong>'?</p>
  
  <hr>
  
  <p>As specified in the comment <code>flutter pub upgrade -v</code> is passing over the additional parameters. However it did not give me any hint what the problem is. Below is the output of <code>flutter pub upgrade -v</code>:</p>
  
  <p>$ flutter pub upgrade -v<br>
  [  +31 ms] executing: [c:\bin\flutter] git log -n 1 --pretty=format:%H<br>
  [  +88 ms] Exit code 0 from: git log -n 1 --pretty=format:%H<br>
  [   +1 ms] b712a172f9694745f50505c93340883493b505e5<br>
  [        ] executing: [c:\bin\flutter] git describe --match v*.<em>.</em> --first-parent --long --tags<br>
  [  +73 ms] Exit code 0 from: git describe --match v*.<em>.</em> --first-parent --long --tags<br>
  [        ] v1.7.8+hotfix.3-0-gb712a172f<br>
  [  +10 ms] executing: [c:\bin\flutter] git rev-parse --abbrev-ref --symbolic @{u}<br>
  [  +68 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}<br>
  [        ] origin/stable<br>
  [        ] executing: [c:\bin\flutter] git ls-remote --get-url origin<br>
  [  +60 ms] Exit code 0 from: git ls-remote --get-url origin<br>
  [        ] <a href="https://github.com/flutter/flutter.git" rel="nofollow noreferrer">https://github.com/flutter/flutter.git</a><br>
  [  +90 ms] executing: [c:\bin\flutter] git rev-parse --abbrev-ref HEAD<br>
  [  +66 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD<br>
  [        ] stable<br>
  [  +70 ms] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.<br>
  [   +6 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.<br>
  [   +2 ms] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.<br>
  [   +1 ms] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.<br>
  [   +1 ms] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.<br>
  [   +1 ms] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.<br>
  [   +6 ms] Running "flutter pub upgrade" in xxxxx...<br>
  [   +3 ms] Using c:\bin\flutter.pub-cache for the pub cache.<br>
  [   +1 ms] executing: [D:\Projects\xxxxx] c:\bin\flutter\bin\cache\dart-sdk\bin\pub.bat --verbosity=warning --verbose upgrade --no-precompile
  [+7197 ms] HTTP error 404: Not Found<br>
  [  +11 ms] package:pub/src/http.dart 218:5                 _ThrowingClient.send<br>
  [   +1 ms] ===== asynchronous gap ===========================<br>
  [   +1 ms] dart:async                                      _AsyncAwaitCompleter.completeError<br>
  [   +1 ms] package:pub/src/http.dart                       _ThrowingClient.send<br>
  [   +1 ms] ===== asynchronous gap ===========================<br>
  [   +1 ms] dart:async                                      _asyncThenWrapperHelper<br>
  [   +1 ms] package:pub/src/http.dart                       _ThrowingClient.send<br>
  [   +1 ms] package:http_throttle/http_throttle.dart 33:31  ThrottleClient.send<br>
  [   +1 ms] ===== asynchronous gap ===========================<br>
  [   +1 ms] dart:async                                      _asyncThenWrapperHelper<br>
  [   +1 ms] package:http_throttle/http_throttle.dart        ThrottleClient.send<br>
  [   +1 ms] package:pub/src/source/hosted.dart 322:37       BoundHostedSource._download<br>
  [   +1 ms] ===== asynchronous gap ===========================<br>
  [   +1 ms] dart:async                                      _asyncThenWrapperHelper<br>
  [        ] package:pub/src/entrypoint.dart                 Entrypoint.acquireDependencies<br>
  [   +1 ms] package:pub/src/command/upgrade.dart 43:22      UpgradeCommand.run<br>
  [   +1 ms] This is an unexpected error. Please run<br>
  [   +1 ms]     pub --trace '--verbosity=warning' --verbose upgrade --no-precompile<br>
  [        ] and include the logs in an issue on <a href="https://github.com/dart-lang/pub/issues/new" rel="nofollow noreferrer">https://github.com/dart-lang/pub/issues/new</a><br>
  [  +20 ms] pub upgrade failed (69) -- attempting retry 1 in 1 second...                                                                                 </p>