summaryrefslogtreecommitdiff
path: root/src/option.h
blob: a07376ba76a9b1636fa14074c5237fd588ee655e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef _OPTION_H
#define _OPTION_H

#include "xpath.h"

namespace ledger {

bool process_option(const string& name, xml::xpath_t::scope_t * scope,
		    const char * arg = NULL);

void process_environment(const char ** envp, const string& tag,
			 xml::xpath_t::scope_t * scope);

void process_arguments(int argc, char ** argv, const bool anywhere,
		       xml::xpath_t::scope_t * scope,
		       std::list<string>& args);

DECLARE_EXCEPTION(option_error);

} // namespace ledger

#endif // _OPTION_H