From dade4cee3a2946a58dc9a72498826da48d0cd75d Mon Sep 17 00:00:00 2001 From: crc Date: Thu, 21 Mar 2019 20:36:38 +0000 Subject: [PATCH] retro w/o args will now run in interactive mode FossilOrigin-Name: b9bc17aa2c02e27805b8ee30003854b313dab5e7f5fd3d0d20a88dc86342cf99 --- interfaces/rre.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/interfaces/rre.c b/interfaces/rre.c index 246d24e..0fc0ef2 100644 --- a/interfaces/rre.c +++ b/interfaces/rre.c @@ -475,9 +475,6 @@ int main(int argc, char **argv) { int run_tests; - if (argc <= 1) return 0; /* Guard clause: exit if no */ - /* arguments are passed. */ - initialize(); /* Initialize Nga & image */ sys_argc = argc; /* Point the global argc and */ @@ -498,6 +495,8 @@ int main(int argc, char **argv) { run_tests = 0; fsp = 0; + if (argc <= 1) modes[FLAG_INTERACTIVE] = 1; + for (i = 1; i < argc; i++) { if (strcmp(argv[i], "-h") == 0) { help(argv[0]);