Skip to content

Commit

Permalink
Merge pull request #174 from grisu48/no-remote
Browse files Browse the repository at this point in the history
Consider no arguments wrong usage
  • Loading branch information
grisu48 authored Oct 2, 2024
2 parents 900c714 + 8caabec commit ff44dc0
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions cmd/openqa-mon/openqa-mon.go
Original file line number Diff line number Diff line change
Expand Up @@ -695,14 +695,10 @@ func main() {
os.Exit(1)
}

// No jobs and no remotes is considered wrong usage
if len(remotes) == 0 {
// Apply default remote, if defined
if config.DefaultRemote == "" {
printHelp()
return
}
remote := Remote{URI: config.DefaultRemote}
remotes = append(remotes, remote)
printHelp()
os.Exit(1)
}

// Remove duplicate IDs and sort jobs by ID
Expand Down

0 comments on commit ff44dc0

Please sign in to comment.