code: def extract_chm (archive, compression, cmd, verbosity, interactive, outdir):
      
      # archmage can only extract in non-existing directories
      # so a nice dirname is created
      name = util.get_single_outfile("", archive)
      outfile = os.path.join(outdir, name)
      return [cmd, '-x', os.path.abspath(archive), outfile]
docs: Extract a CHM archive.