export { run } from "@oclif/command" ; import { Command , flags } from "@oclif/command" ; class Potato extends Command { static description = "describe the command here" ; static flags = { version : flags . version ( { char : "v" } ) , help : flags . help ( { char : "h" } ) , name : flags . string ( { char : "n" , description : "name to print" } ) , force : flags . boolean ( { char : "f" } ) } ; static args = [ { name : "file" } ] ; async run ( ) { const { args , flags } = this . parse ( Potato ) ; const name = flags . name || "world" ; this . log ( `hello ${ name } from ./src/index.ts` ) ; if ( args . file && flags . force ) { this . log ( `you input --force and --file: ${ args . file }` ) ; } } } export default Potato ;