diff options
| author | Alejandro Sior <aho@sior.be> | 2022-06-15 17:42:40 +0200 |
|---|---|---|
| committer | Alejandro Sior <aho@sior.be> | 2022-06-15 17:42:40 +0200 |
| commit | 3c8602ee9f04991e1d60b8d6504e12296ca671d9 (patch) | |
| tree | 1be941405e224be61ce1f2c9116cc5f05bc13e01 /main.ha | |
gptman: add files
Diffstat (limited to 'main.ha')
| -rw-r--r-- | main.ha | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -0,0 +1,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]); + }; +}; |
