Skip to content

Commit fb98f2a

Browse files
committed
Show compiled-in options together with usage.
1 parent 110c15e commit fb98f2a

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

picocom.c

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1072,7 +1072,24 @@ show_usage(char *name)
10721072
s = s ? s+1 : name;
10731073

10741074
printf("picocom v%s\n", VERSION_STR);
1075-
printf("Usage is: %s [options] <tty device>\n", s);
1075+
1076+
printf("\nCompiled-in options:\n");
1077+
printf(" TTY_Q_SZ is %d\n", TTY_Q_SZ);
1078+
#ifdef USE_HIGH_BAUD
1079+
printf(" HIGH_BAUD is enabled\n");
1080+
#endif
1081+
#ifdef USE_FLOCK
1082+
printf(" USE_FLOCK is enabled\n");
1083+
#endif
1084+
#ifdef UUCP_LOCK_DIR
1085+
printf(" UUCP_LOCK_DIR is: %s\n", UUCP_LOCK_DIR);
1086+
#endif
1087+
#ifdef LINENOISE
1088+
printf(" LINENOISE is enabled\n");
1089+
printf(" SEND_RECEIVE_HISTFILE is: %s\n", SEND_RECEIVE_HISTFILE);
1090+
#endif
1091+
1092+
printf("\nUsage is: %s [options] <tty device>\n", s);
10761093
printf("Options are:\n");
10771094
printf(" --<b>aud <baudrate>\n");
10781095
printf(" --<f>low s (=soft) | h (=hard) | n (=none)\n");

0 commit comments

Comments
 (0)