mirror of
https://github.com/NixOS/nix
synced 2025-06-29 02:11:15 +02:00
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.
This commit is contained in:
parent
ec3497c1d6
commit
98d1b64400
18 changed files with 36 additions and 22 deletions
|
@ -132,6 +132,10 @@ protected:
|
|||
|
||||
std::set<std::string> hiddenCategories;
|
||||
|
||||
/* Called after all command line flags before the first non-flag
|
||||
argument (if any) have been processed. */
|
||||
virtual void initialFlagsProcessed() {}
|
||||
|
||||
public:
|
||||
|
||||
void addFlag(Flag && flag);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue