Appl: ability to process a dash after a command added.

This commit is contained in:
Roland Jax
2014-12-14 08:54:18 +01:00
parent cbbca0b40a
commit d142756f35
4 changed files with 46 additions and 31 deletions
+2 -2
View File
@@ -29,14 +29,14 @@
using namespace std;
Appl& A = Appl::Instance(true, true);
Appl& A = Appl::Instance("Command", "{Args...}");
void define_args()
{
A.setVersion("ebusctl is part of """PACKAGE_STRING"");
A.addText(" 'ebusctl' is a tcp socket client for ebusd.\n\n"
"Command: 'help' show available ebusd commands.\n\n"
" hint: try 'help' for available ebusd commands.\n\n"
"Options:\n");
A.addOption("server", "s", OptVal("localhost"), dt_string, ot_mandatory,