ruspa.v0/main.go
2019-03-06 15:03:21 +01:00

18 行
356 B
Go

package main
import (
"flag"
"git.lattuga.net/blallo/ruspa/sizer"
)
func main() {
var path string
var debug bool
flag.StringVar(&path, "path", ".", "The base path.")
flag.BoolVar(&debug, "debug", false, "Toggle debug messages.")
flag.Parse()
sizer.Debug = debug
rootINode := sizer.NewINode(sizer.FileTypes["dir"], 0, path)
rootINode.Sizer()
}