Skip to content

Commit

Permalink
ref: subcommand exit code
Browse files Browse the repository at this point in the history
  • Loading branch information
leukipp committed Aug 13, 2024
1 parent cffb493 commit 4f4286f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/args.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func InitArgs(introspect map[string][]string) {
// Check subcommand line arguments
if !Args.Dbus.Listen && len(Args.Dbus.Method) == 0 && len(Args.Dbus.Property) == 0 {
dbus.Usage()
os.Exit(1)
os.Exit(2)
}
}
}
Expand Down

0 comments on commit 4f4286f

Please sign in to comment.