all repos — py-vite @ 77a26d4231b340dc2bcf3640e63dacb424bf1334

the original vite, written in python

fix: except IndexError
icyphox icyph0x@protonmail.com
Tue, 20 Mar 2018 17:24:38 +0530
commit

77a26d4231b340dc2bcf3640e63dacb424bf1334

parent

323c167ef311a6e0e3344eff13a8d2d9594dd87b

1 files changed, 6 insertions(+), 2 deletions(-)

jump to
M vite.pyvite.py

@@ -19,8 +19,12 @@ if len(sys.argv) == 1:

parser.print_help() sys.exit(1) -args = parser.parse_args() -project_path = args.path[0] +try: + args = parser.parse_args() + project_path = args.path[0] +except IndexError: + parser.print_help() + sys.exit(1) def create_project(path):