Start of new Nix command-line interface

This commit is contained in:
Eelco Dolstra 2016-02-09 21:28:29 +01:00
parent 0db9e6cd1a
commit cd2196b089
14 changed files with 362 additions and 74 deletions

View file

@ -4,6 +4,7 @@
namespace nix {
MixCommonArgs::MixCommonArgs(const string & programName)
: programName(programName)
{
mkFlag('v', "verbose", "increase verbosity level", []() {
verbosity = (Verbosity) (verbosity + 1);

View file

@ -6,6 +6,7 @@ namespace nix {
struct MixCommonArgs : virtual Args
{
string programName;
MixCommonArgs(const string & programName);
};