You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have copied the example deno usage into a file but it will not compile due to error Property argv does not exist on type YargsInstance
I am using Deno version: 1.12.2
Code from readme (more or less)
importyargsfrom'https://deno.land/x/yargs/deno.ts'import{Arguments}from'https://deno.land/x/yargs/deno-types.ts'constinput=yargs(Deno.args).command('download <files...>','download a list of files',(yargs: any)=>{returnyargs.positional('files',{describe: 'a list of files to do something with'})},(argv: Arguments)=>{console.info(argv)}).strictCommands().demandCommand(1)console.log(input.argv)
The text was updated successfully, but these errors were encountered:
@seanaye we removed the .argv property accessor from Deno and ESM versions of yargs, I've confirmed that the following works on deno@1.14.1:
importyargsfrom'https://deno.land/x/yargs/deno.ts'import{Arguments}from'https://deno.land/x/yargs/deno-types.ts'constinput=yargs(Deno.args).command('download <files...>','download a list of files',(yargs: any)=>{returnyargs.positional('files',{describe: 'a list of files to do something with'})},(argv: Arguments)=>{console.info(argv)}).strictCommands().demandCommand(1)console.log(input.parse())
I have copied the example deno usage into a file but it will not compile due to error
Property argv does not exist on type YargsInstance
I am using Deno version: 1.12.2
Code from readme (more or less)
The text was updated successfully, but these errors were encountered: