aboutsummaryrefslogtreecommitdiff
path: root/src/clients/inquisitio
diff options
context:
space:
mode:
Diffstat (limited to 'src/clients/inquisitio')
-rw-r--r--src/clients/inquisitio/inquisitio.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/clients/inquisitio/inquisitio.cc b/src/clients/inquisitio/inquisitio.cc
index 1a0e19f4c..2cee553af 100644
--- a/src/clients/inquisitio/inquisitio.cc
+++ b/src/clients/inquisitio/inquisitio.cc
@@ -25,6 +25,7 @@
#include <cstdlib>
#include <paludis/about.hh>
+#include <paludis/util/system.hh>
#include <paludis/util/join.hh>
#include <paludis/environment_maker.hh>
@@ -55,7 +56,12 @@ namespace
int
main(int argc, char *argv[])
{
- Context context("In program " + join(argv, argv + argc, " ") + ":");
+ std::string options(paludis::getenv_with_default("INQUISITIO_OPTIONS", ""));
+ if (! options.empty())
+ options = "(" + options + ") ";
+ options += join(argv + 1, argv + argc, " ");
+
+ Context context(std::string("In program ") + argv[0] + " " + options + ":");
try
{