Skip to content

Commit

Permalink
Some updates
Browse files Browse the repository at this point in the history
  • Loading branch information
k4m454k committed Dec 8, 2020
1 parent 951ecc7 commit bd6861e
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 6 deletions.
24 changes: 20 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

```
4 changes: 2 additions & 2 deletions map_poster_creator/entrypoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit bd6861e

Please sign in to comment.