about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rwxr-xr-xbin/mog5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/mog b/bin/mog
index 89b1b9b..6238289 100755
--- a/bin/mog
+++ b/bin/mog
@@ -160,6 +160,11 @@ begin
         mg.get_file_data(key, $stdout)
       end
     end
+  when 'updateclass'
+    newclass = cfg[:class] or abort '-C/--class not specified'
+    ARGV.each do |key|
+      mg.updateclass(key, newclass)
+    end
   when 'ls'
     prefixes = ARGV.empty? ? [ nil ] : ARGV
     if ls_l