title: Flutter - Target file "–flavor" not found
body: <p>I'm following <a href="https://www.tengio.com/blog/multiple-firebase-environments-with-flutter/" rel="nofollow noreferrer">this tutorial</a> to manage different Firebase environments.</p>
  
  <p>However, when trying to run the app with a specific flavor, it doesn't work.</p>
  
  <p>I do :</p>
  
  <pre><code>flutter run -flavor dev
  </code></pre>
  
  <p>or:</p>
  
  <pre><code>flutter run --flavor dev
  </code></pre>
  
  <p>But I get this error message:</p>
  
  <blockquote>
    <p>Target file "–flavor" not found.</p>
  </blockquote>
  
  <p>Here is the relevant part of my </p>
  
  <pre><code>flavorDimensions "default"
  productFlavors {
    dev {
      dimension "default"
      applicationIdSuffix ".dev"
    }
    tst {
      dimension "default"
      applicationIdSuffix ".tst"
    }
    prd {
      dimension "default"
    }
  }
  </code></pre>
  
  <p>Sadly, I cannot find anything related to my issue on the internet.</p>
  
  <p>EDIT: I don't know what kind of black magic it is, but after doing </p>
  
  <pre><code>flutter run -h
  </code></pre>
  
  <p>Then</p>
  
  <pre><code>flutter run --flavor dev
  </code></pre>
  
  <p>It worked... Time to go to sleep</p>