Skip to content

Commit

Permalink
add: --versionオプションを追加
Browse files Browse the repository at this point in the history
  • Loading branch information
apxxxxxxe committed May 28, 2022
1 parent b4bf9e0 commit 5e76142
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions shioriUpdater.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import (
)

const name = "shioriupdater"
const version = "1.1"

var shioriPaths = [][]string{
{"yaya.dll", "https://github.com/ponapalt/yaya-shiori/releases/latest/download/yaya.zip"},
Expand Down Expand Up @@ -153,6 +154,13 @@ func main() {

var baseDir string

for _, args := range os.Args {
if args == "--version" {
fmt.Println(name, "version", version)
return
}
}

if len(os.Args) > 1 {
baseDir = os.Args[1]
} else {
Expand Down

0 comments on commit 5e76142

Please sign in to comment.