Skip to content

Commit

Permalink
Add default start argument to main func
Browse files Browse the repository at this point in the history
  • Loading branch information
lwolczynski committed Sep 18, 2024
1 parent 3ca6451 commit 4dea9bd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,10 @@ import (
// main entry point for the iwf server
func main() {
app := iwf.BuildCLI()

if len(os.Args) == 1 {
os.Args = append(os.Args, "start")
}

app.Run(os.Args)
}

0 comments on commit 4dea9bd

Please sign in to comment.