diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2024-05-29 13:19:20 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2024-06-08 12:36:30 -0400 |
commit | 34e133bd0e2d5bb4eed5d5091d14d9e6fce1ff2b (patch) | |
tree | 2abf64518759de4a84d4ac08e218021e9643d3f8 /src/parse.c | |
parent | 778295321928767552ebc577f15e88c17da4c1c9 (diff) | |
download | bfs-34e133bd0e2d5bb4eed5d5091d14d9e6fce1ff2b.tar.xz |
Embed more configuration info in bfs --version
Diffstat (limited to 'src/parse.c')
-rw-r--r-- | src/parse.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/parse.c b/src/parse.c index 8e454e4..a626391 100644 --- a/src/parse.c +++ b/src/parse.c @@ -2958,7 +2958,16 @@ static struct bfs_expr *parse_help(struct bfs_parser *parser, int arg1, int arg2 static struct bfs_expr *parse_version(struct bfs_parser *parser, int arg1, int arg2) { cfprintf(parser->ctx->cout, "${ex}%s${rs} ${bld}%s${rs}\n\n", BFS_COMMAND, bfs_version); - printf("%s\n", BFS_HOMEPAGE); + printf("Copyright © Tavian Barnes and the bfs contributors\n"); + printf("No rights reserved (https://opensource.org/license/0BSD)\n\n"); + + printf("CONFIG := %s\n", bfs_config); + printf("CPPFLAGS := %s\n", bfs_cppflags); + printf("CFLAGS := %s\n", bfs_cflags); + printf("LDFLAGS := %s\n", bfs_ldflags); + printf("LDLIBS := %s\n", bfs_ldlibs); + + printf("\n%s\n", BFS_HOMEPAGE); parser->just_info = true; return NULL; |