Skip to content

Commit

Permalink
run console by default if no arguments are provided at all to Otti
Browse files Browse the repository at this point in the history
  • Loading branch information
xrstf committed Nov 19, 2023
1 parent cbf2a86 commit 2a51a2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/otti/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func main() {

args := pflag.Args()

if opts.interactive {
if opts.interactive || len(args) == 0 {
if err := runConsole(&opts, args); err != nil {
fmt.Printf("Error: %v\n", err)
os.Exit(1)
Expand Down

0 comments on commit 2a51a2d

Please sign in to comment.