From ddf0f920d8e9aa3c729df8a5876f6cfc5c5631a3 Mon Sep 17 00:00:00 2001 From: Aaron Seigo Date: Tue, 9 Dec 2014 22:41:42 +0100 Subject: add a description --- tests/hawd/modules/list.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tests/hawd/modules/list.cpp') diff --git a/tests/hawd/modules/list.cpp b/tests/hawd/modules/list.cpp index 3310217..efb000b 100644 --- a/tests/hawd/modules/list.cpp +++ b/tests/hawd/modules/list.cpp @@ -34,8 +34,8 @@ List::List() : Module() { Syntax top("list", &List::list); - //top.children << Syntax("create", &List::create); setSyntax(top); + setDescription(QObject::tr("Lists all dataset files or, when given one or more names")); } bool List::list(const QStringList &commands, State &state) @@ -65,9 +65,8 @@ bool List::list(const QStringList &commands, State &state) it.next(); std::cout << "\t\t" << it.value().typeString().toStdString() << ' ' << it.key().toStdString() << std::endl; } - } else { - std::cout << QObject::tr("Invalid or non-existent dataset definition at %1").arg(project.absoluteFilePath(file)).toStdString() << std::endl; + std::cout << QObject::tr("Problem with dataset %1. Check with 'check' command.").arg(file).toStdString() << std::endl; } } } -- cgit v1.2.3