From aaf9d2cc673948b58ad28f4eba41c459705dfb83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Mon, 11 Jul 2022 06:09:46 +0300 Subject: [PATCH] update turbo-analyze --- src/turbo-analyze.zig | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/turbo-analyze.zig b/src/turbo-analyze.zig index b4344d4..0f01694 100644 --- a/src/turbo-analyze.zig +++ b/src/turbo-analyze.zig @@ -20,10 +20,13 @@ const Header = @import("header.zig").Header; const section_length_bits = @import("header.zig").section_length_bits; const usage = - \\usage: turbo-analyze [options] [db.turbo] + \\usage: turbo-analyze [OPTION]... \\ - \\ -h Print this help message and exit - \\ [db.turbo] Path to the turbonss database file (default: db.turbo) + \\Arguments: + \\ Path to the database (default: /etc/turbonss/db.turbo) + \\ + \\Options: + \\ -h Print this help message and exit \\ ; @@ -69,7 +72,7 @@ fn execute( } const db_file = switch (myflags.args.len) { - 0 => "db.turbo", + 0 => "/etc/turbonss/db.turbo", 1 => mem.span(myflags.args[0]), else => { stderr.print("ERROR: too many arguments\n", .{}) catch {};