ruspa.v0/main.go

19 lines
356 B
Go
Raw Normal View History

2019-03-06 15:03:21 +01:00
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()
}