]> Cypherpunks.ru repositories - nncp.git/blobdiff - src/cmd/nncp-check/main.go
Operations progress
[nncp.git] / src / cmd / nncp-check / main.go
index bf48638d97b411e2ebf19e9a8725ecd7f8d9b8e5..77fae4a87a515ff0cb1fd7718e739e235da389c6 100644 (file)
@@ -41,6 +41,8 @@ func main() {
                spoolPath = flag.String("spool", "", "Override path to spool")
                logPath   = flag.String("log", "", "Override path to logfile")
                quiet     = flag.Bool("quiet", false, "Print only errors")
+               showPrgrs = flag.Bool("progress", false, "Force progress showing")
+               omitPrgrs = flag.Bool("noprogress", false, "Omit progress showing")
                debug     = flag.Bool("debug", false, "Print debug messages")
                version   = flag.Bool("version", false, "Print version information")
                warranty  = flag.Bool("warranty", false, "Print warranty information")
@@ -56,10 +58,19 @@ func main() {
                return
        }
 
-       ctx, err := nncp.CtxFromCmdline(*cfgPath, *spoolPath, *logPath, *quiet, *debug)
+       ctx, err := nncp.CtxFromCmdline(
+               *cfgPath,
+               *spoolPath,
+               *logPath,
+               *quiet,
+               *showPrgrs,
+               *omitPrgrs,
+               *debug,
+       )
        if err != nil {
                log.Fatalln("Error during initialization:", err)
        }
+       ctx.Umask()
 
        var nodeOnly *nncp.Node
        if *nodeRaw != "" {