From 8afddf605129d0d3c0de3ec085f995bed7df9132 Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 27 Jan 2024 22:09:30 +0000 Subject: ar mode: added initial -Wprint and -Wpretty support. --- src/skin/slbt_skin_ar.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/skin') diff --git a/src/skin/slbt_skin_ar.c b/src/skin/slbt_skin_ar.c index 0c021d9..2991e4e 100644 --- a/src/skin/slbt_skin_ar.c +++ b/src/skin/slbt_skin_ar.c @@ -14,6 +14,20 @@ const struct argv_option slbt_ar_options[] = { "verify that %s is a valid archive; " "supported variants are BSD, SysV, and PE/COFF"}, + {"Wprint", 0,TAG_AR_PRINT,ARGV_OPTARG_OPTIONAL, + ARGV_OPTION_HYBRID_EQUAL|ARGV_OPTION_HYBRID_COMMA, + "members",0, + "print out information pertaining to each archive file " + "and its various internal elements"}, + + {"Wpretty", 0,TAG_AR_PRETTY,ARGV_OPTARG_REQUIRED, + ARGV_OPTION_HYBRID_EQUAL, + "posix|yaml|hexdata",0, + "select the pretty printer to be used: " + "'posix' for ar(1) compatible output; " + "'yaml' for yaml-formatted data; and " + "'hexdata' for yaml-formatted data with additional " + "hexdump output"}, {0,0,0,0,0,0,0,0} }; -- cgit v1.2.3