diff options
| author | thecharlesblake | 2017-10-16 14:15:25 +0100 |
|---|---|---|
| committer | thecharlesblake | 2017-10-26 14:51:33 +0100 |
| commit | 9101c98f951e7b104e6969fd5984379ca04745ea (patch) | |
| tree | 71a154d956da31c55c13402bb8b2f04c6aa36a01 /src/main/command_line_helper.cpp | |
| parent | Move setup classes to legacy (diff) | |
| download | metasol-9101c98f951e7b104e6969fd5984379ca04745ea.tar.gz metasol-9101c98f951e7b104e6969fd5984379ca04745ea.zip | |
Add demo command line parsing
Diffstat (limited to 'src/main/command_line_helper.cpp')
| -rw-r--r-- | src/main/command_line_helper.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/main/command_line_helper.cpp b/src/main/command_line_helper.cpp new file mode 100644 index 0000000..38b9af0 --- /dev/null +++ b/src/main/command_line_helper.cpp @@ -0,0 +1,18 @@ +// +// Created by thecharlesblake on 10/16/17. +// + +#include "command_line_helper.h" +#include <boost/program_options.hpp> + +namespace po = boost::program_options; + +po::options_description get_options_desc() { + // Creates the command line options + po::options_description desc("Allowed options"); + desc.add_options() + ("help", "produce help message") + ("compression", po::value<int>(), "set compression level"); + + return desc; +}
\ No newline at end of file |
