rendermap: add --show-accessibles

This commit is contained in:
Laura Klünder 2016-12-04 13:47:36 +01:00
parent 516d7921ce
commit 01e6674cd0
3 changed files with 25 additions and 4 deletions

View file

@ -6,5 +6,9 @@ from c3nav.mapdata.render import render_all_levels
class Command(BaseCommand):
help = 'render the map'
def add_arguments(self, parser):
parser.add_argument('--show-accessibles', action='store_const', const=True, default=False,
help='highlight graph building areas (for debugging, but it looks nice, too)')
def handle(self, *args, **options):
render_all_levels()
render_all_levels(show_accessibles=options['show_accessibles'])