def call(args, opts = {}, ioe = {})
ioe = CommandPattern.default_ioe(ioe)
help_on = args.shift
if CommandPattern.command?(help_on)
ioe[:output] << CommandPattern[help_on].help
elsif help_on == "commands"
ioe[:output] << <<-EOH
The commands known to minitar are:
minitar create Creates a new tarfile.
minitar extract Extracts files from a tarfile.
minitar list Lists files in the tarfile.
All commands accept the options --verbose and --progress, which are
mutually exclusive. In "minitar list", --progress means the same as
--verbose.
--verbose, -V Performs the requested command verbosely.
--progress, -P Shows a progress bar, if appropriate, for the action
being performed.
EOH
else
ioe[:output] << "Unknown command: #{help_on}\n" unless help_on.nil? or help_on.empty?
ioe[:output] << self.help
end
0
end