mirror of
https://code.blicky.net/yorhel/ncdu.git
synced 2026-01-12 17:08:39 -09:00
parent
d1adcde15c
commit
fdb93bb9e6
1 changed files with 1 additions and 1 deletions
|
|
@ -429,7 +429,7 @@ pub fn main() void {
|
||||||
if (!opt.opt) {
|
if (!opt.opt) {
|
||||||
// XXX: ncdu 1.x doesn't error, it just silently ignores all but the last argument.
|
// XXX: ncdu 1.x doesn't error, it just silently ignores all but the last argument.
|
||||||
if (scan_dir != null) ui.die("Multiple directories given, see ncdu -h for help.\n", .{});
|
if (scan_dir != null) ui.die("Multiple directories given, see ncdu -h for help.\n", .{});
|
||||||
scan_dir = opt.val;
|
scan_dir = allocator.dupeZ(u8, opt.val) catch unreachable;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (opt.is("-h") or opt.is("-?") or opt.is("--help")) help()
|
if (opt.is("-h") or opt.is("-?") or opt.is("--help")) help()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue