Commit aafb1a2
committed
fix: return 0 for --help/--version instead of crashing
std::monostate is triggered when only flags like --help or --version
are passed (no subcommand). __builtin_unreachable() caused a coredump
because this path was actually reachable.
Signed-off-by: Yuming He <ComixHe1895@outlook.com>1 parent fc2a53c commit aafb1a2
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
0 commit comments