From 80670ef315e59b8d8b07e062b494796cb8c22538 Mon Sep 17 00:00:00 2001 From: Mike Donnalley Date: Mon, 6 Feb 2023 06:37:12 -0700 Subject: [PATCH] fix: command template (#1101) --- templates/src/command.ts.ejs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/templates/src/command.ts.ejs b/templates/src/command.ts.ejs index 5d1dc0f04..0b68d3244 100644 --- a/templates/src/command.ts.ejs +++ b/templates/src/command.ts.ejs @@ -1,4 +1,4 @@ -import {Command, Flags} from '@oclif/core' +import {Args, Command, Flags} from '@oclif/core' <%_ const klass = _.upperFirst(_.camelCase(name)) _%> export default class <%- klass %> extends Command { @@ -15,7 +15,9 @@ export default class <%- klass %> extends Command { force: Flags.boolean({char: 'f'}), } - static args = [{name: 'file'}] + static args = { + file: Args.string({description: 'file to read'}), + } public async run(): Promise { const {args, flags} = await this.parse(<%- klass %>)