Include enabled compile-time build options in the help header.

This commit is contained in:
Oliver Jowett 2017-02-02 13:47:19 +00:00
parent aa5885b6df
commit 888c939a75

View file

@ -260,11 +260,28 @@ void snipMode(int level) {
// ================================ Main ==================================== // ================================ Main ====================================
// //
void showHelp(void) { void showHelp(void) {
printf(
"-----------------------------------------------------------------------------\n" printf("-----------------------------------------------------------------------------\n");
"| dump1090 ModeS Receiver %45s |\n" printf("| dump1090 ModeS Receiver %45s |\n", MODES_DUMP1090_VARIANT " " MODES_DUMP1090_VERSION);
"-----------------------------------------------------------------------------\n", printf("| build options: %-58s |\n",
MODES_DUMP1090_VARIANT " " MODES_DUMP1090_VERSION); ""
#ifdef ENABLE_RTLSDR
"ENABLE_RTLSDR "
#endif
#ifdef ENABLE_BLADERF
"ENABLE_BLADERF "
#endif
#ifdef SC16Q11_TABLE_BITS
// This is a little silly, but that's how the preprocessor works..
#define _stringize(x) #x
#define stringize(x) _stringize(x)
"SC16Q11_TABLE_BITS=" stringize(SC16Q11_TABLE_BITS)
#undef stringize
#undef _stringize
#endif
);
printf("-----------------------------------------------------------------------------\n");
printf("\n");
sdrShowHelp(); sdrShowHelp();