Skip to content

Commit d917e8e

Browse files
committed
feat: add -v as shortcut for --version
1 parent c06857f commit d917e8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/ionic/src/lib/executor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export class Executor extends AbstractExecutor<ICommand, INamespace, CommandMeta
2525

2626
const location = await this.namespace.locate(pargs);
2727

28-
if (argv.includes('--version')) {
28+
if (argv.find(arg => arg === '--version' || arg === '-v')) {
2929
return this.execute(['version', ...pargs], env);
3030
} else if (argv.find(arg => arg === '--help' || arg === '-?' || arg === '-h') || !isCommand(location.obj)) {
3131
return this.execute(['help', ...pargs], env);

0 commit comments

Comments
 (0)