summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-02-02 17:12:18 +0000
committermidipix <writeonce@midipix.org>2024-02-02 17:12:18 +0000
commit19170081048289e9724725682293d58edf505cb8 (patch)
tree211d204120874c8842464a23d690b72639c2a244 /src
parent017165cd5837f13834cba38ea71573b981b48012 (diff)
downloadslibtool-19170081048289e9724725682293d58edf505cb8.tar.bz2
slibtool-19170081048289e9724725682293d58edf505cb8.tar.xz
ar mode: driver: added -Wverbose support.
Diffstat (limited to 'src')
-rw-r--r--src/internal/slibtool_driver_impl.h1
-rw-r--r--src/logic/slbt_exec_ar.c4
-rw-r--r--src/skin/slbt_skin_ar.c6
3 files changed, 11 insertions, 0 deletions
diff --git a/src/internal/slibtool_driver_impl.h b/src/internal/slibtool_driver_impl.h
index ab4ed9b..58fa17e 100644
--- a/src/internal/slibtool_driver_impl.h
+++ b/src/internal/slibtool_driver_impl.h
@@ -87,6 +87,7 @@ enum app_tags {
TAG_AR_CHECK,
TAG_AR_PRINT,
TAG_AR_PRETTY,
+ TAG_AR_VERBOSE,
};
struct slbt_split_vector {
diff --git a/src/logic/slbt_exec_ar.c b/src/logic/slbt_exec_ar.c
index e446daa..d3715a8 100644
--- a/src/logic/slbt_exec_ar.c
+++ b/src/logic/slbt_exec_ar.c
@@ -214,6 +214,10 @@ int slbt_exec_ar(
}
break;
+
+ case TAG_AR_VERBOSE:
+ ictx->cctx.fmtflags |= SLBT_PRETTY_VERBOSE;
+ break;
}
if (entry->fval) {
diff --git a/src/skin/slbt_skin_ar.c b/src/skin/slbt_skin_ar.c
index 4dff3d5..7346626 100644
--- a/src/skin/slbt_skin_ar.c
+++ b/src/skin/slbt_skin_ar.c
@@ -29,5 +29,11 @@ const struct argv_option slbt_ar_options[] = {
"'hexdata' for yaml-formatted data with additional "
"hexdump output"},
+ {"Wverbose", 0,TAG_AR_VERBOSE,ARGV_OPTARG_NONE,
+ ARGV_OPTION_HYBRID_ONLY,0,0,
+ "produce verbose output; "
+ "in combination with -Wpretty=posix, this will result "
+ "in `ar(1) -tv` compatible output."},
+
{0,0,0,0,0,0,0,0}
};