mirror of
https://github.com/osmarks/mycorrhiza.git
synced 2025-03-06 19:48:19 +00:00
Fix Usage message
This commit is contained in:
parent
7c19fd57c9
commit
235fba5007
10
flag.go
10
flag.go
@ -4,10 +4,11 @@ import (
|
|||||||
_ "embed"
|
_ "embed"
|
||||||
"flag"
|
"flag"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/bouncepaw/mycorrhiza/cfg"
|
|
||||||
"log"
|
"log"
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
|
||||||
|
"github.com/bouncepaw/mycorrhiza/cfg"
|
||||||
)
|
)
|
||||||
|
|
||||||
// CLI options are read and parsed here.
|
// CLI options are read and parsed here.
|
||||||
@ -25,14 +26,11 @@ func init() {
|
|||||||
|
|
||||||
// printHelp prints the help message.
|
// printHelp prints the help message.
|
||||||
func printHelp() {
|
func printHelp() {
|
||||||
_, err := fmt.Fprintf(
|
fmt.Fprintf(
|
||||||
flag.CommandLine.Output(),
|
flag.CommandLine.Output(),
|
||||||
"Usage of %s:\n",
|
"Usage: %s WIKI_PATH\n",
|
||||||
os.Args[0],
|
os.Args[0],
|
||||||
)
|
)
|
||||||
if err != nil {
|
|
||||||
log.Fatal(err)
|
|
||||||
}
|
|
||||||
flag.PrintDefaults()
|
flag.PrintDefaults()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user