mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2024-11-13 05:22:08 +01:00
fix: alecor: set log level and fix loop condition
This commit is contained in:
parent
975b823e3b
commit
b5b55e9bfc
2 changed files with 5 additions and 1 deletions
|
@ -119,7 +119,7 @@ pub fn correctCommand(
|
|||
|
||||
var cmd_slice_end = subslice.len - 1;
|
||||
|
||||
while (cmd_slice_end > 1) : (cmd_slice_end -= 1) {
|
||||
while (cmd_slice_end >= 1) : (cmd_slice_end -= 1) {
|
||||
if (arg_map.get(subslice[0..cmd_slice_end])) |r| {
|
||||
req = r;
|
||||
break;
|
||||
|
|
|
@ -3,6 +3,10 @@ const std = @import("std");
|
|||
const cache = @import("cache.zig");
|
||||
const util = @import("util.zig");
|
||||
|
||||
pub const std_options = struct {
|
||||
pub const log_level = .debug;
|
||||
};
|
||||
|
||||
pub fn main() !void {
|
||||
if (std.os.argv.len < 2)
|
||||
return error.NotEnoughArguments;
|
||||
|
|
Loading…
Reference in a new issue