all repos — py-vite @ 51acebeeefd0a9c48f63911e2350e868ed5dc87e

the original vite, written in python

style: colorize help message
Anirudh icyph0x@protonmail.com
Sun, 15 Apr 2018 13:04:42 +0530
commit

51acebeeefd0a9c48f63911e2350e868ed5dc87e

parent

a5c33b1b562c4ebdef95641d300a0e5d679516c6

1 files changed, 4 insertions(+), 8 deletions(-)

jump to
M vite.pyvite.py

@@ -11,14 +11,10 @@ import os

from huepy import * -usage = """ - vite.py new [PATH] - """ -parser = argparse.ArgumentParser(description=""" - A simple and minimal static site generator. - """, usage=usage) -parser.add_argument('new', nargs='*',help='Create new Vite project.') -# TODO: add help for each action +usage = blue('vite.py') + ' new [PATH]' +desc = green('A simple and minimal static site generator.') +parser = argparse.ArgumentParser(description=desc, usage=usage) +parser.add_argument(yellow('new'), nargs='*',help='Create new Vite project.') if len(sys.argv) == 1: parser.print_help()