From bd6861e901c121ce5819e4c2d3b99c43e134d5a7 Mon Sep 17 00:00:00 2001 From: Vadim Apenko Date: Tue, 8 Dec 2020 04:08:37 +0300 Subject: [PATCH] Some updates --- README.md | 24 ++++++++++++++++++++---- map_poster_creator/entrypoints.py | 4 ++-- 2 files changed, 22 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index e5e88d6..d38afcd 100644 --- a/README.md +++ b/README.md @@ -48,10 +48,26 @@ Make Poster optional arguments: -h, --help show this help message and exit - --shp_path SHP_PATH Path to shp folder.Download in https://download.geofabrik.de/ - --geojson GEOJSON Path to geojson file with boundary polygon.Create on https://geojson.io/ and export GeoJSON + --shp_path SHP_PATH Path to shp folder.type "mapoc misc shp" to download + --geojson GEOJSON Path to geojson file with boundary polygon.type "mapoc misc geojson" to create and download --colors COLORS [COLORS ...] - Provide colors. eq "--colors white black coral" + Provide colors. eq "--colors white black coral". Default: "white". Available colors: black, white, red, coral --output_prefix OUTPUT_PREFIX - Output file prefix. eq. "{OUTPUT_PREFIX}_{COLOR}.png". Default "map" + Output file prefix. eq. "{OUTPUT_PREFIX}_{COLOR}.png". Default: "map" +``` + +```bash +$ mapoc misc -h +usage: Map Poster Creator misc [-h] {shp,geojson} ... + +Misc services + +optional arguments: + -h, --help show this help message and exit + +misc management commands: + misc + + {shp,geojson} Additional help for available commands + ``` \ No newline at end of file diff --git a/map_poster_creator/entrypoints.py b/map_poster_creator/entrypoints.py index af8a02e..cbbfaf7 100644 --- a/map_poster_creator/entrypoints.py +++ b/map_poster_creator/entrypoints.py @@ -14,7 +14,7 @@ def get_root_parser() -> argparse.ArgumentParser: - parser = argparse.ArgumentParser(prog='Map Poster Creator') + parser = argparse.ArgumentParser(prog='mapoc', description="Map Poster Creator") parser.add_argument('-v', '--version', action='version', version='%(prog)s ' + str(__version__)) return parser @@ -61,7 +61,7 @@ def add_poster_subparsers(parser_group) -> argparse.ArgumentParser: poster_commands_parser = parser_group.add_parser( 'poster', description='Create Map Poster', - help='For create', + help='Poster creation', ) poster_commands_parser_group = poster_commands_parser.add_subparsers( title='poster management commands',