lib/dircat/cli/command_query.rb in dircat-0.1.10 vs lib/dircat/cli/command_query.rb in dircat-0.1.11

- old
+ new

@@ -1,9 +1,11 @@ # -*- coding: utf-8 -*- module DirCat - class CommandQuery < OptParseCommand::CliCommand + class CommandQuery < OptParseCommand::Command + CliDirCat.register_command(self) + def self.command "query" end def self.description @@ -19,11 +21,11 @@ puts "missing catalog!" puts "-h to print help" return 0 end - cat_opts = {} + cat_opts = {} cat_filename = rest[0] if !File.exists?(cat_filename) or File.directory?(cat_filename) puts "first args must be a catalogue" return 1 end @@ -51,6 +53,6 @@ false end end end -end \ No newline at end of file +end