[pacman-dev] [PATCH] Document --debug
Nagy Gabor
ngaba at bibl.u-szeged.hu
Sun Mar 22 12:26:15 EDT 2009
>From c121fa3c9ad702f4daa0f1156869573673d749c7 Mon Sep 17 00:00:00 2001
From: Nagy Gabor <ngaba at bibl.u-szeged.hu>
Date: Sun, 22 Mar 2009 17:13:29 +0100
Subject: [PATCH] Document --debug
After some irc/forum experiences, I decided to document this option.
However, I left the debug-level undocumented (--debug=2).
Signed-off-by: Nagy Gabor <ngaba at bibl.u-szeged.hu>
---
doc/pacman.8.txt | 6 +++++-
src/pacman/pacman.c | 1 +
2 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/doc/pacman.8.txt b/doc/pacman.8.txt
index c574872..95880a2 100644
--- a/doc/pacman.8.txt
+++ b/doc/pacman.8.txt
@@ -124,9 +124,13 @@ Options
command line or in linkman:pacman.conf[5], their default location will
be inside this root path.
-*-v, --verbose*::
+*-v, \--verbose*::
Output paths such as as the Root, Conf File, DB Path, Cache Dirs, etc.
+*\--debug*::
+ Display debug messages. When reporting bugs, this option is recommended
+ to be used.
+
*\--cachedir* <'dir'>::
Specify an alternative package cache location (a typical default is
``/var/cache/pacman/pkg''). Multiple cache directories can be specified,
diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c
index 59916d6..14cfdfa 100644
--- a/src/pacman/pacman.c
+++ b/src/pacman/pacman.c
@@ -143,6 +143,7 @@ static void usage(int op, const char * const myname)
printf(_(" --noprogressbar do not show a progress bar when downloading files\n"));
printf(_(" --noscriptlet do not execute the install scriptlet if one exists\n"));
printf(_(" -v, --verbose be verbose\n"));
+ printf(_(" --debug display debug messages\n"));
printf(_(" -r, --root <path> set an alternate installation root\n"));
printf(_(" -b, --dbpath <path> set an alternate database location\n"));
printf(_(" --cachedir <dir> set an alternate package cache location\n"));
--
1.6.0.3
More information about the pacman-dev
mailing list