Land #7966, Fix 'rm' to handle multiple files

bug/bundler_fix
William Webb 2017-02-21 13:32:19 -06:00
commit 2a20d24c29
No known key found for this signature in database
GPG Key ID: 341763D0308DA650
1 changed files with 3 additions and 3 deletions

View File

@ -309,15 +309,15 @@ class Console::CommandDispatcher::Stdapi::Fs
end
#
# Delete the specified file.
# Delete the specified file(s).
#
def cmd_rm(*args)
if (args.length == 0)
print_line("Usage: rm file")
print_line("Usage: rm file1 [file2...]")
return true
end
client.fs.file.rm(args[0])
args.each { |f| client.fs.file.rm(f) }
return true
end