18 const Open_Mode default_mode = File::lockable
30 if (!parsed_client.get())
32 arguments.print_help(std::cerr) <<
'\n';
33 parsed_client.print_help(std::cerr);
37 Client &client = *parsed_client.get();
39 std::unique_ptr<Client_Command_Processor> interpreter;
43 if (writable_client && !client.is_pullonly())
48 interpreter->set_prompt(
true);
49 interpreter->main_loop(std::cin, std::cout);
56int main(
int argc,
char **argv)
Class for conveniently parsing command-line arguments.
Handle concurrent access to a file with a joedb::Connection.
Writable specialization of Client.
@ shared_write
like write_existing_or_create_new, but does not lock the file, and does not fail if locked
@ write_existing_or_create_new
either write_existing or create_new depending on whether the file exists
int main_wrapper(int(*main)(Arguments &), int argc, char **argv)
Process command-line arguments and catch exceptions from main.