aboutsummaryrefslogtreecommitdiff
path: root/src/clients/qualudis/qualudis.cc
diff options
context:
space:
mode:
authorAvatar Piotr Jaroszyński <peper@gentoo.org> 2008-01-02 19:18:33 +0000
committerAvatar Piotr Jaroszyński <peper@gentoo.org> 2008-01-02 19:18:33 +0000
commitfae222dd3a23d93171899885b9b89f678d0ce43a (patch)
tree20f99248f8e2444d04112c03a6f477288d9d7fc5 /src/clients/qualudis/qualudis.cc
parent92711652ec74135f3924c546bb387b363bd3444e (diff)
downloadpaludis-fae222dd3a23d93171899885b9b89f678d0ce43a.tar.gz
paludis-fae222dd3a23d93171899885b9b89f678d0ce43a.tar.xz
Include *_OPTIONS in the clients' main context.
Diffstat (limited to 'src/clients/qualudis/qualudis.cc')
-rw-r--r--src/clients/qualudis/qualudis.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/clients/qualudis/qualudis.cc b/src/clients/qualudis/qualudis.cc
index eae8324..0795f02 100644
--- a/src/clients/qualudis/qualudis.cc
+++ b/src/clients/qualudis/qualudis.cc
@@ -20,6 +20,7 @@
#include <paludis/args/args.hh>
#include <paludis/paludis.hh>
#include <paludis/qa.hh>
+#include <paludis/util/system.hh>
#include <paludis/util/join.hh>
#include <paludis/util/dir_iterator.hh>
#include <paludis/util/log.hh>
@@ -251,7 +252,12 @@ namespace
int main(int argc, char *argv[])
{
- Context context("In main program:");
+ std::string options(paludis::getenv_with_default("QUALUDIS_OPTIONS", ""));
+ if (! options.empty())
+ options = "(" + options + ") ";
+ options += join(argv + 1, argv + argc, " ");
+
+ Context context(std::string("In program ") + argv[0] + " " + options + ":");
try
{