-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.go
35 lines (30 loc) · 893 Bytes
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/***************************
@File : main.go
@Time : 2022/03/03 13:47:19
@AUTHOR : small_ant
@Email : [email protected]
@Desc : golang 根据素材生成nft图片
****************************/
package main
import (
"fake-nft/cmd"
"flag"
)
var (
count = flag.Int("amount", 10, "Input your NFT Amount.")
layer = flag.String("layer", "demo", "Input your layer path.")
out = flag.String("out", "demo", "Input your out path.")
collection = flag.String("collection", "Demo-Collection", "Input your collection name.")
Input_flagvar int
)
func Init() {
flag.IntVar(&Input_flagvar, "flagname", 1234, "help message for flagname")
}
func main() {
Init()
flag.Parse()
if *count <= 0 {
panic("argument `amount` value not supported !")
}
cmd.StartCreating(cmd.NewConf(*count, *layer, *out, *collection, 2000, 2000, false))
}