From 9efd0016c86081fc4e99ef1ea29d999d211fb402 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0tefan=20Baebler?= Date: Sun, 7 May 2023 21:38:56 +0200 Subject: [PATCH] README: added CLI documentation --- README.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 022f8d6..a7354e8 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ Specification: https://wiki.openstreetmap.org/wiki/Shortlink ## Usage -### Creating a link +### Creating a link in Go ```go package main @@ -25,3 +25,16 @@ func main() { ``` Prints: [`https://osm.org/go/0Ik3VNr_A-?m`](https://osm.org/go/0Ik3VNr_A-?m) + +### Command-line tool + +```bash +Usage: osmshortlink [latitude] [longitude] [zoom] +``` + +eg: + +```bash +$ osmshortlink 46.05141 14.50604 17 +https://osm.org/go/0Ik3VNr_A-?m +```