Skip to content

Commit df636c1

Browse files
committed
Accept --cli in CLI only builds for compatibility
1 parent efc8cd6 commit df636c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/optparse.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ static struct option longopts[] = {
5757
#endif
5858
#ifdef TUI
5959
{"tui", no_argument, NULL, 't'},
60-
{"cli", no_argument, NULL, palerain_option_case_cli},
6160
#endif
61+
{"cli", no_argument, NULL, palerain_option_case_cli},
6262
{NULL, 0, NULL, 0}
6363
};
6464

@@ -313,10 +313,10 @@ int optparse(int argc, char* argv[]) {
313313
case 't':
314314
palerain_flags |= palerain_option_tui;
315315
break;
316+
#endif
316317
case palerain_option_case_cli:
317318
palerain_flags |= palerain_option_cli;
318319
break;
319-
#endif
320320
#ifdef DEV_BUILD
321321
case '1':
322322
palerain_flags |= palerain_option_test1;

0 commit comments

Comments
 (0)