Skip to content

Commit

Permalink
Update pmtiles upload --help
Browse files Browse the repository at this point in the history
Related to protomaps#194
  • Loading branch information
zstadler authored Dec 1, 2024
1 parent f1c24e6 commit 2749167
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ var cli struct {
} `cmd:"" help:"Download a local archive to remote storage." hidden:""`

Upload struct {
Input string `arg:"" type:"existingfile"`
Key string `arg:""`
InputPMTiles string `arg:"" type:"existingfile" help:"The local PMTiles file"`
RemotePMTiles string `arg:"" help:"The name for the remote PMTiles source"`
MaxConcurrency int `default:"2" help:"# of upload threads"`
Bucket string `required:"" help:"Bucket to upload to."`
} `cmd:"" help:"Upload a local archive to remote storage."`
Expand Down Expand Up @@ -203,8 +203,8 @@ func main() {
if err != nil {
logger.Fatalf("Failed to convert %s, %v", path, err)
}
case "upload <input> <key>":
err := pmtiles.Upload(logger, cli.Upload.Input, cli.Upload.Bucket, cli.Upload.Key, cli.Upload.MaxConcurrency)
case "upload <inputpmiles> <remotepmtiles>":
err := pmtiles.Upload(logger, cli.Upload.InputPMTiles, cli.Upload.Bucket, cli.Upload.RemotePMTiles, cli.Upload.MaxConcurrency)

if err != nil {
logger.Fatalf("Failed to upload file, %v", err)
Expand Down

0 comments on commit 2749167

Please sign in to comment.