--- nono/lib/mainapp.cpp 2026/04/29 17:04:57 1.1.1.9 +++ nono/lib/mainapp.cpp 2026/04/29 17:05:05 1.1.1.11 @@ -44,9 +44,10 @@ MainApp::ShowHelp(bool all) const p("-C output log to console"); p("-d debugger prompt on startup"); p("-D debugger on console"); + p("-H human68k console emulation"); p("-L =[,..] set loglevel (-Lhelp displays names)"); + p("--load-only load host binary (a.out or ELF) but not execute"); p("-M [,..] monitors to display at startup (-Mhelp displays names)"); - p("-H human68k console emulation"); } } @@ -55,6 +56,7 @@ MainApp::ShowHelp(bool all) const // 0x80 から始めておく。 enum { OPT_fontsize = 0x80, + OPT_load_only, OPT_help, OPT_show_config, OPT_show_config_all, @@ -62,6 +64,7 @@ enum { }; static struct option longopts[] = { { "fontsize", required_argument, NULL, OPT_fontsize }, + { "load-only", required_argument, NULL, OPT_load_only }, { "help", no_argument, NULL, OPT_help }, { "show-config", no_argument, NULL, OPT_show_config }, // --show-config-all は開発用なのでヘルプには載せない @@ -312,6 +315,9 @@ MainApp::ParseOpt(int ac, char *av[]) break; case 'X': + load_and_exec = true; + FALLTHROUGH; + case OPT_load_only: exec_file = optarg; for (int i = optind; i < ac; i++) { if (i != optind) {