mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-19 05:50:27 +00:00
cli/gtk: remove --release and --debug flags, use optional for arguments
This commit is contained in:
@@ -153,7 +153,7 @@ pub fn parse(
|
||||
|
||||
// The error set is dependent on comptime T, so we always add
|
||||
// an extra error so we can have the "else" below.
|
||||
const ErrSet = @TypeOf(err) || error{ Unknown, OutOfMemory };
|
||||
const ErrSet = @TypeOf(err) || error{ Unknown, OutOfMemory } || Error;
|
||||
const message: [:0]const u8 = switch (@as(ErrSet, @errorCast(err))) {
|
||||
// OOM is not recoverable since we need to allocate to
|
||||
// track more error messages.
|
||||
|
||||
Reference in New Issue
Block a user