Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add autoClose flag #130

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions steamgrid.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ func startApplication() {
nonSteamOnly := flag.Bool("nonsteamonly", false, "Only search artwork for Non-Steam-Games")
appIDs := flag.String("appids", "", "Comma separated list of appIds that should be processed")
onlyMissingArtwork := flag.Bool("onlymissingartwork", false, "Only download artworks missing on the official servers")
autoClose := flag.Bool("autoclose", false, "Automatically end process after finishing")
flag.Parse()
if flag.NArg() == 1 {
steamDir = &flag.Args()[0]
Expand Down Expand Up @@ -339,8 +340,10 @@ func startApplication() {

fmt.Printf("\n\n")
}

fmt.Println("Open Steam in grid view to see the results!\n\nPress enter to close.")
if !autoClose {
bufio.NewReader(os.Stdin).ReadBytes('\n')
}

bufio.NewReader(os.Stdin).ReadBytes('\n')
}