summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/slibtool/slibtool_output.h1
-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
4 files changed, 12 insertions, 0 deletions
diff --git a/include/slibtool/slibtool_output.h b/include/slibtool/slibtool_output.h
index cf94180..8d2965f 100644
--- a/include/slibtool/slibtool_output.h
+++ b/include/slibtool/slibtool_output.h
@@ -15,5 +15,6 @@
#define SLBT_PRETTY_YAML SLBT_PRETTY(0x00000001)
#define SLBT_PRETTY_POSIX SLBT_PRETTY(0x00000002)
#define SLBT_PRETTY_HEXDATA SLBT_PRETTY(0x00000004)
+#define SLBT_PRETTY_VERBOSE SLBT_PRETTY(0x00000008)
#endif
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}
};