mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2025-01-19 09:36:47 +02:00
dropEmptyInitThenConcatStringsSep -> concatStringSep: CLI commands are not empty
This commit is contained in:
parent
0480bfe50b
commit
062672b022
1 changed files with 3 additions and 1 deletions
|
@ -41,6 +41,8 @@ extern std::string chrootHelperName;
|
|||
void chrootHelper(int argc, char * * argv);
|
||||
#endif
|
||||
|
||||
#include "strings.hh"
|
||||
|
||||
namespace nix {
|
||||
|
||||
enum struct AliasStatus {
|
||||
|
@ -185,7 +187,7 @@ struct NixArgs : virtual MultiCommand, virtual MixCommonArgs, virtual RootArgs
|
|||
auto & info = i->second;
|
||||
if (info.status == AliasStatus::Deprecated) {
|
||||
warn("'%s' is a deprecated alias for '%s'",
|
||||
arg, dropEmptyInitThenConcatStringsSep(" ", info.replacement));
|
||||
arg, concatStringsSep(" ", info.replacement));
|
||||
}
|
||||
pos = args.erase(pos);
|
||||
for (auto j = info.replacement.rbegin(); j != info.replacement.rend(); ++j)
|
||||
|
|
Loading…
Reference in a new issue