aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2010-06-30 16:12:46 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2010-06-30 16:12:46 +0300
commit2ad152567ebbbd566d28308afbb2e79bb24bcf7e (patch)
tree8b9996202240f5f2d5644f27f7df7f75442bb96f
parentaf7a7d6064d385ea513c8c426e9c70f4adc83601 (diff)
downloadsmap-2ad152567ebbbd566d28308afbb2e79bb24bcf7e.tar.gz
smap-2ad152567ebbbd566d28308afbb2e79bb24bcf7e.tar.bz2
Short equivalent for the --debug option is -d.
The -x alias is retained for backward compatibility.
-rw-r--r--doc/smap.texi15
-rw-r--r--src/cmdline.opt3
-rw-r--r--src/smapccmd.opt3
3 files changed, 14 insertions, 7 deletions
diff --git a/doc/smap.texi b/doc/smap.texi
index a2129dc..150c4d8 100644
--- a/doc/smap.texi
+++ b/doc/smap.texi
@@ -528,7 +528,7 @@ occasionally be of use for server administrators as well.
@cindex debug category
@cindex category, debugging
Debugging information is requested using the @option{--debug}
-(@option{-x}) command line option or @samp{debug} configuration
+(@option{-d}) command line option or @samp{debug} configuration
statement. In both cases, the argument is a @dfn{debug
specification}, consisting of two parts, separated by a dot:
@samp{@var{cat}.@var{lev}}. The @var{cat} part is a @dfn{debug
@@ -1203,10 +1203,13 @@ Trace queries and replies. @xref{debugging,, Query traces}.
Trace only queries that begin with the given @var{pattern}.
@xref{trace-pattern}.
-@smapdopidx{x, debug}
+@smapdopidx{d, debug}
+@item -d @var{level}
@item -x @var{level}
@itemx --debug=@var{level}
Set debug verbosity level. @xref{debugging,,Debugging information}.
+The @option{-x} alias is for compatibility with version 1.0 and will
+be removed in subsequent releases.
@smapdopidx{L, log-tag}
@item -L
@@ -3272,11 +3275,13 @@ Set source address. @xref{smapc-source}.
@itemx --trace
Enable query traces. @xref{debugging, traces}.
-@smapcopidx{x, debug}
-@item -x @var{spec}
+@smapcopidx{d, debug}
+@item -d @var{spec}
+@itemx -x @var{spec}
@itemx --debug=@var{spec}
Set debug verbosity level. @xref{debugging, Debugging information},
-for a detailed description.
+for a detailed description. The @option{-x} alias is for
+compatibility with version 1.0 and will be removed in subsequent releases.
@smapcopidx{h, help}
@item -h
diff --git a/src/cmdline.opt b/src/cmdline.opt
index 3dbf9d7..00075ce 100644
--- a/src/cmdline.opt
+++ b/src/cmdline.opt
@@ -97,8 +97,9 @@ BEGIN
add_trace_pattern(optarg);
END
-OPTION(debug, x, LEVEL-SPEC,
+OPTION(debug, d, LEVEL-SPEC,
[<set debug verbosity level>])
+ALIAS(,x)
BEGIN
if (smap_debug_set(optarg))
smap_error("invalid debug specification: %s", optarg);
diff --git a/src/smapccmd.opt b/src/smapccmd.opt
index 70b494c..835de67 100644
--- a/src/smapccmd.opt
+++ b/src/smapccmd.opt
@@ -21,8 +21,9 @@ OPTIONS_BEGIN("smapc",
[<copyright_year=2009, 2010>],
[<copyright_holder=Sergey Poznyakoff>])
-OPTION(debug, x, LEVEL-SPEC,
+OPTION(debug, d, LEVEL-SPEC,
[<set debug verbosity level>])
+ALIAS(,x)
BEGIN
if (smap_debug_set(optarg))
smap_error("invalid debug specification: %s", optarg);

Return to:

Send suggestions and report system problems to the System administrator.