mirror of
https://github.com/taigrr/wails.git
synced 2026-04-14 19:01:09 -07:00
Only run default command if no args
Add custom template (Frameworks)
This commit is contained in:
@@ -172,7 +172,10 @@ func (c *Command) Run(args []string) error {
|
||||
if c.App.defaultCommand != nil {
|
||||
// Prevent recursion!
|
||||
if c.App.defaultCommand != c {
|
||||
return c.App.defaultCommand.Run(args)
|
||||
// only run default command if no args passed
|
||||
if len(args) == 0 {
|
||||
return c.App.defaultCommand.Run(args)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user