]> Cypherpunks.ru repositories - nncp.git/blobdiff - src/cmd/nncp-cfgdir/main.go
Remove huge usage headers, -warranty exists anyway
[nncp.git] / src / cmd / nncp-cfgdir / main.go
index 6a8366d97c8578dc6f1c4b290fa86a144be93bd0..c01d830e83d751840332a0f4e3d0383e352ff615 100644 (file)
@@ -21,7 +21,6 @@ package main
 import (
        "flag"
        "fmt"
-       "io/ioutil"
        "log"
        "os"
 
@@ -30,7 +29,6 @@ import (
 )
 
 func usage() {
-       fmt.Fprint(os.Stderr, nncp.UsageHeader())
        fmt.Fprint(os.Stderr, "nncp-cfgdir -- Convert configuration file to the directory layout.\n\n")
        fmt.Fprintf(os.Stderr, "Usage: %s [options] [-cfg ...] -dump /path/to/dir\n", os.Args[0])
        fmt.Fprintf(os.Stderr, "       %s [options] -load /path/to/dir > cfg.hjson\nOptions:\n", os.Args[0])
@@ -63,7 +61,7 @@ func main() {
        }
 
        if *doDump {
-               cfgRaw, err := ioutil.ReadFile(*cfgPath)
+               cfgRaw, err := os.ReadFile(*cfgPath)
                if err != nil {
                        log.Fatalln(err)
                }