[master] c80068a8c vapi: Declare VSC_OPT_f
Dridi Boukelmoune
dridi.boukelmoune at gmail.com
Mon Aug 31 16:00:07 UTC 2020
commit c80068a8c5912d3e861a3912c216c47e6a4eb710
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date: Tue Aug 25 16:47:58 2020 +0200
vapi: Declare VSC_OPT_f
It is not limited to varnishstat.
diff --git a/bin/varnishstat/varnishstat_options.h b/bin/varnishstat/varnishstat_options.h
index 73cba2a99..35bdb5c11 100644
--- a/bin/varnishstat/varnishstat_options.h
+++ b/bin/varnishstat/varnishstat_options.h
@@ -38,14 +38,6 @@
"Instead of presenting a continuously updated display," \
" print the statistics to stdout." \
)
-#define STAT_OPT_f \
- VOPT("f:", "[-f <glob>]", "Field inclusion glob", \
- "Field inclusion glob." \
- " Use backslash to escape characters. If the argument" \
- " starts with '^' it is used as an exclusive glob." \
- " Multiple -f arguments may be given. Inclusive globs" \
- " are accumulative and are run before exclusive ones." \
- )
#define STAT_OPT_j \
VOPT("j", "[-j]", "Print statistics to stdout as JSON", \
"Print statistics to stdout as JSON." \
@@ -61,7 +53,7 @@
)
STAT_OPT_1
-STAT_OPT_f
+VSC_OPT_f
VUT_OPT_h
STAT_OPT_j
STAT_OPT_l
diff --git a/include/vapi/vapi_options.h b/include/vapi/vapi_options.h
index 419a71302..823c3b673 100644
--- a/include/vapi/vapi_options.h
+++ b/include/vapi/vapi_options.h
@@ -124,3 +124,14 @@
" taglist and regular expression. Applies to any tag if" \
" taglist is absent. Multiple -X options may be given.\n" \
)
+
+/* VSC options */
+
+#define VSC_OPT_f \
+ VOPT("f:", "[-f <glob>]", "Field inclusion glob", \
+ "Field inclusion glob." \
+ " Use backslash to escape characters. If the argument" \
+ " starts with '^' it is used as an exclusive glob." \
+ " Multiple -f arguments may be given. Inclusive globs" \
+ " are accumulative and are run before exclusive ones." \
+ )
More information about the varnish-commit
mailing list