all repos — vite @ 3e51c35d6f1cc825bcf75a0760ee2072bdef8cf5

a fast (this time, actually) and minimal static site generator

Make arg parse break less; it still sucks tho
Anirudh Oppiliappan x@icyphox.sh
Fri, 30 Oct 2020 10:50:50 +0530
commit

3e51c35d6f1cc825bcf75a0760ee2072bdef8cf5

parent

a37830ede37231e8ac2ed418007cf1a97914e461

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

jump to
M main.gomain.go

@@ -18,9 +18,10 @@ build builds the current project

new PATH create a new markdown post ` - if len(args) <= 2 { - fmt.Println(helpStr) - return + // TODO: make arg parsing less shit + + if len(args) <= 1 { + fmt.Println(helpStr) } switch args[1] {