diff options
-rw-r--r-- | Userland/modload.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Userland/modload.cpp b/Userland/modload.cpp index d0412a0fcd..2478aa01eb 100644 --- a/Userland/modload.cpp +++ b/Userland/modload.cpp @@ -3,9 +3,12 @@ int main(int argc, char** argv) { - (void)argc; - (void)argv; - const char* path = "/mod/TestModule.o"; + if (argc != 2) { + printf("usage: %s <module.o>\n", argv[0]); + return 0; + } + + const char* path = argv[1]; int rc = module_load(path, strlen(path)); if (rc < 0) { perror("module_load"); |