added table under command line

This commit is contained in:
Erik Frojdh 2020-10-30 12:07:54 +01:00
parent 139db216fe
commit 2f76afd8a6
2 changed files with 11 additions and 1 deletions

View File

@ -30,3 +30,12 @@ Commands
----------- -----------
.. include:: ../commands.rst .. include:: ../commands.rst
Depreciated commands
------------------------
.. csv-table:: Depreciated commands
:file: ../depreciated.csv
:widths: 35, 35
:header-rows: 1

View File

@ -52,7 +52,8 @@ int main() {
fs << '\t' << cmd << usage << help << "\n"; fs << '\t' << cmd << usage << help << "\n";
} }
std::ofstream fs2("depreciated.txt"); std::ofstream fs2("depreciated.csv");
fs2 << "Old, New\n";
auto cmds = proxy.GetDepreciatedCommands(); auto cmds = proxy.GetDepreciatedCommands();
for (auto it : cmds){ for (auto it : cmds){
fs2 << it.first << ", " << it.second << '\n'; fs2 << it.first << ", " << it.second << '\n';