diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-03-04T14·21+0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-03-04T14·21+0100 |
commit | 7c9d7a253c52dfbf8488d3394fe8af104a3af234 (patch) | |
tree | b78f69734d35f428456dde41a87808feead701e0 /src/libmain/common-args.hh | |
parent | 0a26b56cba5d9f1fa815273fadc500284dda1118 (diff) | |
parent | 1b4b16cc6d9585c7bbeb871edc815137baef8f83 (diff) |
Merge branch 'new-cli'
Diffstat (limited to 'src/libmain/common-args.hh')
-rw-r--r-- | src/libmain/common-args.hh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/libmain/common-args.hh b/src/libmain/common-args.hh new file mode 100644 index 000000000000..2c0d71edd815 --- /dev/null +++ b/src/libmain/common-args.hh @@ -0,0 +1,23 @@ +#pragma once + +#include "args.hh" + +namespace nix { + +struct MixCommonArgs : virtual Args +{ + string programName; + MixCommonArgs(const string & programName); +}; + +struct MixDryRun : virtual Args +{ + bool dryRun; + + MixDryRun() + { + mkFlag(0, "dry-run", "show what this command would do without doing it", &dryRun); + } +}; + +} |