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);
|
void chrootHelper(int argc, char * * argv);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "strings.hh"
|
||||||
|
|
||||||
namespace nix {
|
namespace nix {
|
||||||
|
|
||||||
enum struct AliasStatus {
|
enum struct AliasStatus {
|
||||||
|
@ -185,7 +187,7 @@ struct NixArgs : virtual MultiCommand, virtual MixCommonArgs, virtual RootArgs
|
||||||
auto & info = i->second;
|
auto & info = i->second;
|
||||||
if (info.status == AliasStatus::Deprecated) {
|
if (info.status == AliasStatus::Deprecated) {
|
||||||
warn("'%s' is a deprecated alias for '%s'",
|
warn("'%s' is a deprecated alias for '%s'",
|
||||||
arg, dropEmptyInitThenConcatStringsSep(" ", info.replacement));
|
arg, concatStringsSep(" ", info.replacement));
|
||||||
}
|
}
|
||||||
pos = args.erase(pos);
|
pos = args.erase(pos);
|
||||||
for (auto j = info.replacement.rbegin(); j != info.replacement.rend(); ++j)
|
for (auto j = info.replacement.rbegin(); j != info.replacement.rend(); ++j)
|
||||||
|
|
Loading…
Reference in a new issue