62 if (! report_stack.empty())
63 report_stack.front().quick_close();
67 return _(
"global scope");
81 return *session_ptr.get();
84 return report_stack.front();
88 report_stack.push_front(
new report_t(report_stack.front()));
92 assert(! report_stack.empty());
93 report_stack.pop_front();
96 assert(! report_stack.empty());
113 report_stack.insert(++report_stack.begin(),
114 new report_t(report_stack.front()));
130 out <<
_(
", the command-line accounting tool");
135 out <<
_(
" support for gpg encrypted journals and with");
136#if !HAVE_BOOST_PYTHON
139 out <<
_(
" Python support");
141 _(
"\n\nCopyright (c) 2003-2023, John Wiegley. All rights reserved.\n\n\
142This program is made available under the terms of the BSD Public License.\n\
143See LICENSE file included with the distribution for details and disclaimer.");
177 parent->show_version_info(std::cout);
Basic type and macros for handling command-line options.
#define OPTION(type, name)
#define OPTION_(type, name, body)
#define OPTION__(type, name, body)
boost::filesystem::path path
std::list< string > strings_list
void handle_debug_options(int argc, char *argv[])
intrusive_ptr< op_t > ptr_op_t
function< result_type(call_scope_t &) func_t)
void report_options(report_t &report, std::ostream &out)
strings_list read_command_arguments(scope_t &scope, strings_list args)
expr_t::func_t look_for_command(scope_t &scope, const string &verb)
void show_version_info(std::ostream &out)
void parse_init(path init_file)
global_scope_t(char **envp)
void visit_man_page() const
value_t push_command(call_scope_t &)
value_t pop_command(call_scope_t &)
void read_environment_settings(char *envp[])
option_t< global_scope_t > * lookup_option(const char *p)
expr_t::func_t look_for_precommand(scope_t &scope, const string &verb)
void execute_command(strings_list args, bool at_repl)
virtual expr_t::ptr_op_t lookup(const symbol_t::kind_t kind, const string &name)
int execute_command_wrapper(strings_list args, bool at_repl)
void normalize_session_options()
void report_error(const std::exception &err)
virtual string description()
static scope_t * default_scope
Dynamic type representing various numeric types.