fix: alecor: set log level and fix loop condition

This commit is contained in:
LordMZTE 2023-08-08 21:21:56 +02:00
parent 975b823e3b
commit b5b55e9bfc
Signed by: LordMZTE
GPG key ID: B64802DC33A64FF6
2 changed files with 5 additions and 1 deletions

View file

@ -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;

View file

@ -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;