.action(actions.login);
program.command('put <file> [files...]')
- .option('-d --destination <folder>', 'Destination folder. This is prepended to the relative <file> 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 <file>')
+ .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);