Show EOL distros:
Package Summary
Embeds the TCLAP library inside the ecl. This is a very convenient command line parser in templatised c++.
- Author: Daniel Stonier (d.stonier@gmail.com)
- License: BSD
- External website: http://tclap.sourceforge.net/manual.html
- Source: svn https://embedded-control-library.googlecode.com/svn/trunk/ecl_core
Package Summary
Embeds the TCLAP library inside the ecl. This is a very convenient command line parser in templatised c++.
- Author: Daniel Stonier (d.stonier@gmail.com)
- License: BSD
- External website: http://tclap.sourceforge.net/manual.html
- Source: svn https://embedded-control-library.googlecode.com/svn/tags/ecl_core/fuerte
Package Summary
Embeds the TCLAP library inside the ecl. This is a very convenient command line parser in templatised c++.
- Maintainer status: developed
- Maintainer: Daniel Stonier <d.stonier AT gmail DOT com>
- Author: Daniel Stonier <d.stonier AT gmail DOT com>
- License: BSD
- Bug / feature tracker: https://github.com/stonier/ecl_core/issues
- Source: git https://github.com/stonier/ecl_core.git (branch: groovy-devel)
Package Summary
Embeds the TCLAP library inside the ecl. This is a very convenient command line parser in templatised c++.
- Maintainer status: developed
- Maintainer: Daniel Stonier <d.stonier AT gmail DOT com>
- Author: Daniel Stonier <d.stonier AT gmail DOT com>
- License: BSD
- Bug / feature tracker: https://github.com/stonier/ecl_core/issues
- Source: git https://github.com/stonier/ecl_core.git (branch: hydro-devel)
Package Summary
Embeds the TCLAP library inside the ecl. This is a very convenient command line parser in templatised c++.
- Maintainer status: maintained
- Maintainer: Daniel Stonier <d.stonier AT gmail DOT com>
- Author: Daniel Stonier <d.stonier AT gmail DOT com>
- License: BSD
- Bug / feature tracker: https://github.com/stonier/ecl_core/issues
- Source: git https://github.com/stonier/ecl_core.git (branch: release/0.61-indigo-kinetic)
Package Summary
Embeds the TCLAP library inside the ecl. This is a very convenient command line parser in templatised c++.
- Maintainer status: developed
- Maintainer: Daniel Stonier <d.stonier AT gmail DOT com>
- Author: Daniel Stonier <d.stonier AT gmail DOT com>
- License: BSD
- Bug / feature tracker: https://github.com/stonier/ecl_core/issues
- Source: git https://github.com/stonier/ecl_core.git (branch: devel)
Package Summary
Embeds the TCLAP library inside the ecl. This is a very convenient command line parser in templatised c++.
- Maintainer status: developed
- Maintainer: Daniel Stonier <d.stonier AT gmail DOT com>
- Author: Daniel Stonier <d.stonier AT gmail DOT com>
- License: BSD
- Bug / feature tracker: https://github.com/stonier/ecl_core/issues
- Source: git https://github.com/stonier/ecl_core.git (branch: release/0.61-indigo-kinetic)
Package Summary
Embeds the TCLAP library inside the ecl. This is a very convenient command line parser in templatised c++.
- Maintainer status: maintained
- Maintainer: Daniel Stonier <d.stonier AT gmail DOT com>
- Author: Daniel Stonier <d.stonier AT gmail DOT com>
- License: BSD
- Bug / feature tracker: https://github.com/stonier/ecl_core/issues
- Source: git https://github.com/stonier/ecl_core.git (branch: release/0.62-melodic)
Package Summary
Embeds the TCLAP library inside the ecl. This is a very convenient command line parser in templatised c++.
- Maintainer status: maintained
- Maintainer: Daniel Stonier <d.stonier AT gmail DOT com>
- Author: Daniel Stonier <d.stonier AT gmail DOT com>
- License: BSD
- Bug / feature tracker: https://github.com/stonier/ecl_core/issues
- Source: git https://github.com/stonier/ecl_core.git (branch: release/0.62-noetic)
Overview
Provides a templatised c++ parser for handling command line arguments. The templates provide a very flexible manner for handling any type of input argument.
The code for the command line parser is a simple wrapper around another template header library called TCLAP. Since it is relatively small, its bundled here in the command_line subdirectory and namespaced in a convenient manner.
Alternatives
A more complicated, but more flexible alternative (it allows argument parsing from both command line and configuration file simultaneously) is the boost::program_options library.
Compiling & Linking
Include the following at the top of any translation unit:
1 #include <ecl/command_line.hpp>
2
3 // Interface classes
4 using ecl::CmdLine;
5 using ecl::ArgException
6 // Argument classes
7 using ecl::SwitchArg;
8 using ecl::ValueArg;
9 using ecl::MultiArg;
10 using ecl::UnlabeledValueArg;
11 using ecl::UnlabeledMultiArg; // there are more - see tclap docs
12
Tutorials
Examples
src/examples/command_line.cpp.