# HG changeset patch # User David Demelier # Date 1623915852 -7200 # Node ID be3153b765c0411fe2c104d732148ae9123e6d6d # Parent b7585f0c39341e0bea6d059519229af11a133d1f irccd: implement info subcommand diff -r b7585f0c3934 -r be3153b765c0 irccd/main.c --- a/irccd/main.c Tue Apr 27 17:12:03 2021 +0200 +++ b/irccd/main.c Thu Jun 17 09:44:12 2021 +0200 @@ -87,8 +87,23 @@ { (void)argc; +#if defined(IRCCD_WITH_JS) + const char *with_js = "yes"; +#else + const char *with_js = "no"; +#endif +#if defined(IRCCD_WITH_SSL) + const char *with_ssl = "yes"; +#else + const char *with_ssl = "no"; +#endif + if (strcmp(argv[0], "version") == 0) puts(IRCCD_VERSION); + else if (strcmp(argv[0], "info") == 0) { + printf("%-16s%s\n", "javascript:", with_js); + printf("%-16s%s\n", "ssl:", with_ssl); + } return 0; }