protomaps / go-pmtiles

Single-file executable tool for working with PMTiles archives
BSD 3-Clause "New" or "Revised" License
350 stars 48 forks source link

change tmp file location #160

Closed lauriemann closed 4 months ago

lauriemann commented 5 months ago

format for specifying tmp directory in convert command is not shown in help output

bdon commented 4 months ago
pmtiles convert --help
Usage: main convert <input> <output>

Convert an MBTiles or older spec version to PMTiles.

Arguments:
  <input>     Input archive.
  <output>    Output PMTiles archive.

Flags:
  -h, --help                Show context-sensitive help.

      --force               Force removal.
      --no-deduplication    Don't attempt to deduplicate tiles.
      --tmpdir=STRING       An optional path to a folder for tmp data.
lauriemann commented 4 months ago

Sorry, you are correct, it is there in the specific help output for the convert command, which we missed as we had been looking at the top-level help, but we figured it out from source code. RTFM error on our part, as the last line does point at it! Thanks for the response.

pmtiles --help Usage: pmtiles

Flags: -h, --help Show context-sensitive help.

Commands: convert Convert an MBTiles or older spec version to PMTiles.

show Inspect a local or remote archive.

tile Fetch one tile from a local or remote archive and output on stdout.

extract Create an archive from a larger archive for a subset of zoom levels or geographic region.

verify Verify the correctness of an archive structure, without verifying individual tile contents.

serve Run an HTTP proxy server for Z/X/Y tiles.

download --bucket=STRING Upload a local archive to remote storage.

upload --bucket=STRING Upload a local archive to remote storage.

version Show the program version.

Run "pmtiles --help" for more information on a command.