#include "../../Utils/senfassert.hh"
#include "../../Utils/Range.hh"
#include "../../Utils/String.hh"
+#include "../../Utils/range.hh"
//#include "Executor.mpp"
#define prefix_
ParseCommandInfo::TokensRange path)
{
GenericNode const & node (traverseNode(path));
- output << prettyName(typeid(node)) << " at " << node.path() << "\n\n";
+ // output << prettyName(typeid(node)) << " at " << node.path() << "\n\n";
node.help(output);
output << std::flush;
}
{
if (! dir.hasChild(name)) {
DirectoryNode::ChildrenRange completions (dir.completions(name));
- if (completions.size() == 1)
+ if (has_one_elt(completions))
return completions.begin()->first;
}
return name;