X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=cli%2Fsurfer.js;h=4c096d3bb18ab200a66de198f2fb8b4b2fa954c1;hb=a13b23d766fe7715a6c711c9ee3294afaf9b22ff;hp=8920641896cafd986fb0e1880ee72e50154f091e;hpb=d53a1669766a1a77bda34ee52109bee9c8735bda;p=perso%2FImmae%2FProjets%2FNodejs%2FSurfer.git diff --git a/cli/surfer.js b/cli/surfer.js index 8920641..4c096d3 100755 --- a/cli/surfer.js +++ b/cli/surfer.js @@ -15,17 +15,18 @@ program.command('login ') .action(actions.login); program.command('put [files...]') - .option('-d --destination ', 'Destination folder. This is prepended to the relative path') .option('-a --all', 'Also include hidden files and folders.', false) - .description('Put a file') + .description('Put a file, last argument is destination if provided') .action(actions.put); program.command('get [file]') - .description('Get a file or directory') + .description('Get a file or directory listing') .action(actions.get); -program.command('del') - .description('Delete a file') +program.command('del ') + .option('-r --recursive', 'Recursive delete directories.', false) + .option('-d --dry-run', 'Only list files to delete.', false) + .description('Delete a file or directory') .action(actions.del); program.parse(process.argv);