312: def call(args, opts = {}, ioe = {})
313: ioe = CommandPattern.default_ioe(ioe)
314:
315: help_on = args.shift
316:
317: if CommandPattern.command?(help_on)
318: ioe[:output] << CommandPattern[help_on].help
319: elsif help_on == "commands"
320: ioe[:output] << "The commands known to minitar are:\n\nminitar create Creates a new tarfile.\nminitar extract Extracts files from a tarfile.\nminitar list Lists files in the tarfile.\n\nAll commands accept the options --verbose and --progress, which are\nmutually exclusive. In \"minitar list\", --progress means the same as\n--verbose.\n\n--verbose, -V Performs the requested command verbosely.\n--progress, -P Shows a progress bar, if appropriate, for the action\nbeing performed.\n\n"
321: else
322: ioe[:output] << "Unknown command: #{help_on}\n" unless help_on.nil? or help_on.empty?
323: ioe[:output] << self.help
324: end
325:
326: 0
327: end