Use sub-namespaces for functionality-groups.
This commit is contained in:
parent
10e84a7707
commit
031e2f0db6
|
@ -46,7 +46,7 @@ int main(int argc, char *argv[])
|
||||||
po::variables_map vm;
|
po::variables_map vm;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
vm = epubgrep::parse_options(argc, argv);
|
vm = epubgrep::options::parse_options(argc, argv);
|
||||||
}
|
}
|
||||||
catch (std::exception &e)
|
catch (std::exception &e)
|
||||||
{ // Exceptions we can't recover from or ones we don't know.
|
{ // Exceptions we can't recover from or ones we don't know.
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
namespace epubgrep
|
namespace epubgrep::options
|
||||||
{
|
{
|
||||||
|
|
||||||
namespace po = boost::program_options;
|
namespace po = boost::program_options;
|
||||||
|
@ -129,4 +129,4 @@ fs::path get_config_path()
|
||||||
return "epubgrep.conf";
|
return "epubgrep.conf";
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace epubgrep
|
} // namespace epubgrep::options
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
|
|
||||||
#include <boost/program_options/variables_map.hpp>
|
#include <boost/program_options/variables_map.hpp>
|
||||||
|
|
||||||
namespace epubgrep
|
namespace epubgrep::options
|
||||||
{
|
{
|
||||||
|
|
||||||
namespace po = boost::program_options;
|
namespace po = boost::program_options;
|
||||||
|
@ -38,6 +38,6 @@ po::variables_map parse_options(int argc, char *argv[]);
|
||||||
*/
|
*/
|
||||||
fs::path get_config_path();
|
fs::path get_config_path();
|
||||||
|
|
||||||
} // namespace epubgrep
|
} // namespace epubgrep::options
|
||||||
|
|
||||||
#endif // EPUBGREP_OPTIONS_HPP
|
#endif // EPUBGREP_OPTIONS_HPP
|
||||||
|
|
Loading…
Reference in New Issue
Block a user