Command Usage

- Enhanced CmdHelp by adding aliases.
- Corrected usage for CmdModify.
- Renamed CmdQuery --> CmdExport.
- Added an alias _query --> export.
This commit is contained in:
Paul Beckingham 2011-07-12 00:51:05 -04:00
parent 3ef8f3f31a
commit 4d410972d4
8 changed files with 31 additions and 17 deletions

View file

@ -90,6 +90,20 @@ int CmdHelp::execute (std::string& output)
}
}
// Add the aliases commands.
row = view.addRow ();
view.set (row, 1, " ");
std::map <std::string, std::string>::iterator alias;
for (alias = context.aliases.begin ();
alias != context.aliases.end ();
++alias)
{
row = view.addRow ();
view.set (row, 1, alias->first);
view.set (row, 2, "Aliased to '" + alias->second + "'");
}
/*
row = view.addRow ();
view.set (row, 1, "task ID /from/to/g");