blob: 89e6686b61a9e100beb7ea0dabb21afb4535c77b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
use fmt;
use getopt;
use os;
use convert;
use mbr;
use gpt;
export fn main() void = {
if (len(os::args) < 2) {
fmt::fatalf("{}: expected command", os::args[0]);
};
switch (os::args[1]) {
case "convert" => convert::convert(os::args[1..]);
case => fmt::fatalf("{}: no such command {}", os::args[0], os::args[1]);
};
};
|