From a9e7878741afabccb032c0a6f51aded9751a86fd Mon Sep 17 00:00:00 2001 From: handlerug Date: Fri, 2 Jul 2021 01:52:44 +0700 Subject: [PATCH] Remove unused flags --- flag.go | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/flag.go b/flag.go index de4f66e..120eeee 100644 --- a/flag.go +++ b/flag.go @@ -13,14 +13,8 @@ import ( // CLI options are read and parsed here. -//go:embed assets/config.ini -var defaultConfig []byte - -var printExampleConfig bool - func init() { flag.StringVar(&cfg.HTTPPort, "port", "", "Listen on another port. This option also updates the config file for your convenience.") - flag.BoolVar(&printExampleConfig, "print-example-config", false, "If true, print an example configuration file contents and exit. You can save the output to a file and base your own configuration on it.") flag.Usage = printHelp } @@ -39,11 +33,6 @@ func parseCliArgs() { flag.Parse() args := flag.Args() - if printExampleConfig { - os.Stdout.Write(defaultConfig) - os.Exit(0) - } - if len(args) == 0 { log.Fatal("Error: pass a wiki directory") }