wip omit_members

This commit is contained in:
Motiejus Jakštys 2022-07-14 20:05:24 +03:00
parent 63a6756a6b
commit b720b7f613

View File

@ -88,9 +88,6 @@ fn init() void {
// break :blk mem.eql(u8, mem.sliceTo(os.argv[0], 0), "id");
//};
//if (verbose)
// std.debug.print("omitting members from getgr* calls: {any}\n", .{omit_members});
//const fname = os.getenvZ(ENV_DB) orelse turbonss_db_path;
//if (verbose)
// std.debug.print("opening '{s}'\n", .{fname});
@ -98,6 +95,14 @@ fn init() void {
const verbose = false;
const omit_members = false;
//const omit_members = if (os.argv.len == 0)
// false
//else
// mem.eql(u8, mem.sliceTo(os.argv[0], 0), "id");
if (verbose)
std.debug.print("omitting members from getgr* calls: {any}\n", .{omit_members});
const file = File.open(fname) catch |err| {
if (verbose)
std.debug.print("open '{s}': {s}\n", .{ fname, @errorName(err) });