Feature Request: Create a non-interactive CLI version #4

Closed
opened 2025-08-05 18:33:31 +00:00 by DeflateAwning · 3 comments
DeflateAwning commented 2025-08-05 18:33:31 +00:00 (Migrated from github.com)

Would be helpful if there was a programatic way to call this from the CLI. Currently, running satellite_imagery_downloader -h and satellite_imagery_downloader --help does nothing.

Would be helpful if there was a programatic way to call this from the CLI. Currently, running `satellite_imagery_downloader -h` and `satellite_imagery_downloader --help` does nothing.
LeviLovie commented 2025-08-17 13:52:32 +00:00 (Migrated from github.com)

Hm, ill work on that :)

Hm, ill work on that :)
LeviLovie commented 2025-08-17 14:38:13 +00:00 (Migrated from github.com)

I've added args parsing using the argh crate.

Here is the help command:

$ ./target/debug/satellite_imagery_downloader --help
Usage: satellite_imagery_downloader [-p <prefs>] [-o] [-u <url>] [-s <tile-size>] [-d <out-dir>] [-t <top-left>] [-b <bottom-right>] [-z <zoom>]

A program for downloading satellite imagery by geographic coordinates

Options:
  -p, --prefs       preferences file path
  -o, --open        open the result image in the default viewer
  -u, --url         URL template for the imagery
  -s, --tile-size   tile size in pixels
  -d, --out-dir     out directory
  -t, --top-left    top left coordinates (52.70867508992417, 5.68805453553596)
  -b, --bottom-right
                    bottom right coordinates (52.55494609768789,
                    5.879032918935248)
  -z, --zoom        zoom level (recommended 13-18)
  --help, help      display usage information
I've added args parsing using the [argh](https://docs.rs/argh/latest/argh/) crate. Here is the help command: ``` $ ./target/debug/satellite_imagery_downloader --help Usage: satellite_imagery_downloader [-p <prefs>] [-o] [-u <url>] [-s <tile-size>] [-d <out-dir>] [-t <top-left>] [-b <bottom-right>] [-z <zoom>] A program for downloading satellite imagery by geographic coordinates Options: -p, --prefs preferences file path -o, --open open the result image in the default viewer -u, --url URL template for the imagery -s, --tile-size tile size in pixels -d, --out-dir out directory -t, --top-left top left coordinates (52.70867508992417, 5.68805453553596) -b, --bottom-right bottom right coordinates (52.55494609768789, 5.879032918935248) -z, --zoom zoom level (recommended 13-18) --help, help display usage information ```
DeflateAwning commented 2025-08-18 20:27:56 +00:00 (Migrated from github.com)

Very nice!

Very nice!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
levi/satellite-imagery#4
No description provided.