}
flag.Parse()
+ if *showVersion {
+ fmt.Println(meta4ra.Version())
+ return
+ }
+ if *showWarranty {
+ fmt.Println(meta4ra.Warranty)
+ return
+ }
+
data, err := os.ReadFile(*metaPath)
if err != nil {
log.Fatalln(err)
}
}
if len(toCheck) != 0 {
- fmt.Println("not all FILEs met")
- bad = true
+ if _, ok := toCheck["."]; !(len(toCheck) == 1 && ok) {
+ fmt.Println("not all FILEs met")
+ bad = true
+ }
}
if bad {
os.Exit(1)