diff options
author | Shea Levy <shea@shealevy.com> | 2021-01-28 09:37:43 -0500 |
---|---|---|
committer | Shea Levy <shea@shealevy.com> | 2021-02-24 08:22:17 -0500 |
commit | 98d1b64400cc7b75216fc885859883c707c18bef (patch) | |
tree | 81b82449977fd5ef0b9c01b38c15666458d567a5 /src/nix-env/nix-env.cc | |
parent | ec3497c1d63f4c0547d0402d92015f846f56aac7 (diff) |
Initialize plugins after handling initial command line flags
This is technically a breaking change, since attempting to set plugin
files after the first non-flag argument will now throw an error. This
is acceptable given the relative lack of stability in a plugin
interface and the need to tie the knot somewhere once plugins can
actually define new subcommands.
Diffstat (limited to 'src/nix-env/nix-env.cc')
-rw-r--r-- | src/nix-env/nix-env.cc | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/nix-env/nix-env.cc b/src/nix-env/nix-env.cc index 106a78fc4..0f10a4cbb 100644 --- a/src/nix-env/nix-env.cc +++ b/src/nix-env/nix-env.cc @@ -1420,8 +1420,6 @@ static int main_nix_env(int argc, char * * argv) myArgs.parseCmdline(argvToStrings(argc, argv)); - initPlugins(); - if (!op) throw UsageError("no operation specified"); auto store = openStore(); |