diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2021-02-26 14:55:54 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2021-02-26 14:55:54 +0100 |
commit | 453c3a603f4e6fa3f8c706e73f9869bc7f76c640 (patch) | |
tree | 87d70db57d33a66cb8752a1fd6ee4ae57202c30e /src/libutil/args.hh | |
parent | 20ea1de77d9210e145d5ebb1dccd34c856149b2c (diff) |
nix flake update: Recreate the lock file
This is probably what most people expect it to do. Fixes #3781.
There is a new command 'nix flake lock' that has the old behaviour of
'nix flake update', i.e. it just adds missing lock file entries unless
overriden using --update-input.
Diffstat (limited to 'src/libutil/args.hh')
-rw-r--r-- | src/libutil/args.hh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libutil/args.hh b/src/libutil/args.hh index 4721c21df..c08ba8abd 100644 --- a/src/libutil/args.hh +++ b/src/libutil/args.hh @@ -140,6 +140,8 @@ public: void addFlag(Flag && flag); + void removeFlag(const std::string & longName); + void expectArgs(ExpectedArg && arg) { expectedArgs.emplace_back(std::move(arg)); |