diff options
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/ior/main.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd/ior/main.go b/cmd/ior/main.go index 2b852f0..8d93d28 100644 --- a/cmd/ior/main.go +++ b/cmd/ior/main.go @@ -23,8 +23,9 @@ func main() { os.Exit(2) } - // Run the internal logic of the application - if err := internal.Run(); err != nil { + // Run the internal logic of the application. + // flags.Get() is called here at the CLI boundary so internal code never reads the singleton. + if err := internal.Run(flags.Get()); err != nil { fmt.Printf("Failed to run: %v\n", err) os.Exit(2) } |
