title: Typeorm Migration:generate failure Not enough non-option arguments: got 0, need at least 1
body: <p>I tried this command in different possible ways but the basic structure of my command was.</p>
  <pre><code> yarn typeorm migration:generate -n=consent-record -d=\&quot;./src/db/CliDataSource.ts\&quot;
  </code></pre>
  <p>this is my typeorm command in the package.json for yarn berry</p>
  <pre><code>&quot;typeorm&quot;: &quot;ts-node -P ./tsconfig.typeorm.json $(yarn bin typeorm) -d ./src/db/CliDataSource.ts&quot;,
  </code></pre>
  <p>I also tried installing typeorm locally as an npm. and also tried with npx.
  but they all give the following error. &quot;Not enough non-option arguments: got 0, need at least 1&quot;
  this error clearly doesn't mention what is missing.</p>
  <p>my CliDataSource goes like this.</p>
  <pre><code>export const CliDataSource = new DataSource({
    type: 'postgres',
    host: 'localhost',
    port: 5436,
    username: '****',
    password: '******',
    database: 'consent',
    synchronize: false,
    logging: false,
    entities,
    migrations,
    migrationsRun: true,
    subscribers: [],
  });
  </code></pre>
  <p><a href="https://i.stack.imgur.com/12vfR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/12vfR.png" alt="enter image description here" /></a></p>
  <p>I am using typeorm &quot;^0.3.6&quot;</p>