]> git.immae.eu Git - perso/Immae/Projets/Nodejs/Surfer.git/blobdiff - cli/surfer.js
Send username/password in body and fix cli
[perso/Immae/Projets/Nodejs/Surfer.git] / cli / surfer.js
index b311658ca275d7010ccc60a41a5e6946a1a3db1c..4c096d3bb18ab200a66de198f2fb8b4b2fa954c1 100755 (executable)
@@ -20,11 +20,13 @@ program.command('put <file> [files...]')
     .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);