about summary refs log tree commit diff
path: root/src/libmain
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2016-02-09T20·28+0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2016-02-09T20·28+0100
commitcd2196b08981a96cf607ad4a8f2f0dfa8cdf2add (patch)
treeb8f213b8790dc55812dae9fd1403bb352ccad0e2 /src/libmain
parent0db9e6cd1af299f7d65e0b99019f0ccdbb1aaf3f (diff)
Start of new Nix command-line interface
Diffstat (limited to 'src/libmain')
-rw-r--r--src/libmain/common-args.cc1
-rw-r--r--src/libmain/common-args.hh1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/libmain/common-args.cc b/src/libmain/common-args.cc
index 54dbb1da3ca8..9219f380c74f 100644
--- a/src/libmain/common-args.cc
+++ b/src/libmain/common-args.cc
@@ -4,6 +4,7 @@
 namespace nix {
 
 MixCommonArgs::MixCommonArgs(const string & programName)
+    : programName(programName)
 {
     mkFlag('v', "verbose", "increase verbosity level", []() {
         verbosity = (Verbosity) (verbosity + 1);
diff --git a/src/libmain/common-args.hh b/src/libmain/common-args.hh
index 62657e0d0218..2c0d71edd815 100644
--- a/src/libmain/common-args.hh
+++ b/src/libmain/common-args.hh
@@ -6,6 +6,7 @@ namespace nix {
 
 struct MixCommonArgs : virtual Args
 {
+    string programName;
     MixCommonArgs(const string & programName);
 };