summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAaron Seigo <aseigo@kde.org>2014-12-09 22:41:42 +0100
committerAaron Seigo <aseigo@kde.org>2014-12-11 01:01:13 +0100
commitddf0f920d8e9aa3c729df8a5876f6cfc5c5631a3 (patch)
tree8260675ea3fae393f4acf84fd3c55eb57cfa8014 /tests
parentcad5f1bc0c9042c9b1b8b2e48a7d7a5f931ca0e0 (diff)
downloadsink-ddf0f920d8e9aa3c729df8a5876f6cfc5c5631a3.tar.gz
sink-ddf0f920d8e9aa3c729df8a5876f6cfc5c5631a3.zip
add a description
Diffstat (limited to 'tests')
-rw-r--r--tests/hawd/modules/list.cpp5
1 files changed, 2 insertions, 3 deletions
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()
34 : Module() 34 : Module()
35{ 35{
36 Syntax top("list", &List::list); 36 Syntax top("list", &List::list);
37 //top.children << Syntax("create", &List::create);
38 setSyntax(top); 37 setSyntax(top);
38 setDescription(QObject::tr("Lists all dataset files or, when given one or more names"));
39} 39}
40 40
41bool List::list(const QStringList &commands, State &state) 41bool List::list(const QStringList &commands, State &state)
@@ -65,9 +65,8 @@ bool List::list(const QStringList &commands, State &state)
65 it.next(); 65 it.next();
66 std::cout << "\t\t" << it.value().typeString().toStdString() << ' ' << it.key().toStdString() << std::endl; 66 std::cout << "\t\t" << it.value().typeString().toStdString() << ' ' << it.key().toStdString() << std::endl;
67 } 67 }
68
69 } else { 68 } else {
70 std::cout << QObject::tr("Invalid or non-existent dataset definition at %1").arg(project.absoluteFilePath(file)).toStdString() << std::endl; 69 std::cout << QObject::tr("Problem with dataset %1. Check with 'check' command.").arg(file).toStdString() << std::endl;
71 } 70 }
72 } 71 }
73 } 72 }