Commit 24545229 by Johannes Zellner

Require a file argument for delete

1 parent c9d33e20
Showing with 5 additions and 4 deletions
......@@ -188,6 +188,7 @@ function del(filePath) {
if (error && error.status === 401) return console.log('Login failed');
if (error && error.status === 404) return console.log('No such file or directory');
if (error) return console.log('Failed', result ? result.body : error);
console.log('Success', result.body);
console.log('Success. Removed %s files.', result.body.entries.length);
});
}
......@@ -20,11 +20,11 @@ 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>')
.description('Delete a file or directory')
.action(actions.del);
program.parse(process.argv);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!