oclif 3.6.2 → 3.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "3.6.2",
2
+ "version": "3.6.3",
3
3
  "commands": {
4
4
  "generate": {
5
5
  "id": "generate",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "oclif",
3
3
  "description": "oclif: create your own CLI",
4
- "version": "3.6.2",
4
+ "version": "3.6.3",
5
5
  "author": "Salesforce",
6
6
  "bin": {
7
7
  "oclif": "bin/run"
@@ -1,4 +1,4 @@
1
- import {Command, Flags} from '@oclif/core'
1
+ import {Args, Command, Flags} from '@oclif/core'
2
2
  <%_ const klass = _.upperFirst(_.camelCase(name)) _%>
3
3
 
4
4
  export default class <%- klass %> extends Command {
@@ -15,7 +15,9 @@ export default class <%- klass %> extends Command {
15
15
  force: Flags.boolean({char: 'f'}),
16
16
  }
17
17
 
18
- static args = [{name: 'file'}]
18
+ static args = {
19
+ file: Args.string({description: 'file to read'}),
20
+ }
19
21
 
20
22
  public async run(): Promise<void> {
21
23
  const {args, flags} = await this.parse(<%- klass %>)