-
-
Notifications
You must be signed in to change notification settings - Fork 477
Expand file tree
/
Copy pathcommand-line-app.hpp
More file actions
42 lines (30 loc) · 896 Bytes
/
command-line-app.hpp
File metadata and controls
42 lines (30 loc) · 896 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef OSM2PGSQL_COMMAND_LINE_APP_HPP
#define OSM2PGSQL_COMMAND_LINE_APP_HPP
/**
* SPDX-License-Identifier: GPL-2.0-or-later
*
* This file is part of osm2pgsql (https://osm2pgsql.org/).
*
* Copyright (C) 2006-2026 by the osm2pgsql developer community.
* For a full list of authors see the git log.
*/
#include "options.hpp"
#include <CLI/CLI.hpp>
#include <string>
#include <utility>
class command_line_app_t : public CLI::App
{
public:
explicit command_line_app_t(std::string app_description);
bool want_help() const;
bool want_version() const;
connection_params_t connection_params() const noexcept
{
return m_connection_params;
}
void init_database_options();
void init_logging_options(bool with_progress, bool with_sql);
private:
connection_params_t m_connection_params;
}; // class App
#endif // OSM2PGSQL_COMMAND_LINE_APP_HPP