We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c06857f commit d917e8eCopy full SHA for d917e8e
1 file changed
packages/ionic/src/lib/executor.ts
@@ -25,7 +25,7 @@ export class Executor extends AbstractExecutor<ICommand, INamespace, CommandMeta
25
26
const location = await this.namespace.locate(pargs);
27
28
- if (argv.includes('--version')) {
+ if (argv.find(arg => arg === '--version' || arg === '-v')) {
29
return this.execute(['version', ...pargs], env);
30
} else if (argv.find(arg => arg === '--help' || arg === '-?' || arg === '-h') || !isCommand(location.obj)) {
31
return this.execute(['help', ...pargs], env);
0 commit comments