aboutsummaryrefslogtreecommitdiff
path: root/flags.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-03-24 21:47:40 +0800
committerRunxi Yu <me@runxiyu.org>2025-03-24 22:02:18 +0800
commitdbfadc5a7e5bd3163b49878994063cd6d869fe6a (patch)
tree5200e50de2b41a1f7e4da805fea1234141174e04 /flags.go
parentcsolver: Remove, it's not needed anymore (diff)
downloadpowxy-dbfadc5a7e5bd3163b49878994063cd6d869fe6a.tar.gz
powxy-dbfadc5a7e5bd3163b49878994063cd6d869fe6a.tar.zst
powxy-dbfadc5a7e5bd3163b49878994063cd6d869fe6a.zip
Refactorv0.1.13
Diffstat (limited to 'flags.go')
-rw-r--r--flags.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/flags.go b/flags.go
index b613206..49bd3ff 100644
--- a/flags.go
+++ b/flags.go
@@ -11,6 +11,7 @@ var (
secondary bool
)
+// This init parses command line flags.
func init() {
flag.UintVar(&global.NeedBits, "difficulty", 20, "leading zero bits required for the challenge")
flag.StringVar(&global.SourceURL, "source", "https://forge.lindenii.runxiyu.org/powxy/:/repos/powxy/", "url to the source code")