Skip to content

Commit

Permalink
add show version
Browse files Browse the repository at this point in the history
  • Loading branch information
csznet committed Oct 11, 2023
1 parent 9471e39 commit b293865
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,13 @@ func init() {
flag.StringVar(&conf.ChannelName, "channel", "", "Channel Name")
flag.StringVar(&conf.Pass, "pass", "", "Visit Password")
flag.StringVar(&conf.Mode, "mode", "", "Run mode")
showVersion := flag.Bool("v", false, "Show Version")
indexPtr := flag.Bool("index", false, "Show Index")
flag.Parse()
if *showVersion {
fmt.Printf("版本号: %s\n", "v1.2.2")
return
}
if *indexPtr {
index = false
}
Expand Down

1 comment on commit b293865

@vercel
Copy link

@vercel vercel bot commented on b293865 Oct 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.