Mercurial > irccd
changeset 1039:be3153b765c0
irccd: implement info subcommand
author | David Demelier <markand@malikania.fr> |
---|---|
date | Thu, 17 Jun 2021 09:44:12 +0200 |
parents | b7585f0c3934 |
children | c857bc879669 |
files | irccd/main.c |
diffstat | 1 files changed, 15 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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; }