Skip to content

Commit

Permalink
cmd/mumax3: don't go interactive by default when no scripts are provided
Browse files Browse the repository at this point in the history
  • Loading branch information
godsic committed May 22, 2019
1 parent d116048 commit 5cebd32
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/mumax3/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ func main() {

switch flag.NArg() {
case 0:
runInteractive()
if *engine.Flag_interactive {
runInteractive()
}
case 1:
runFileAndServe(flag.Arg(0))
default:
Expand Down

0 comments on commit 5cebd32

Please sign in to comment.