/* -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ #include #include #include #include "argv.h" namespace procman { OptionGroup::OptionGroup() : Glib::OptionGroup("", ""), show_system_tab(false), show_processes_tab(false), show_resources_tab(false), show_file_systems_tab(false), print_version(false) { Glib::OptionEntry proc_tab; proc_tab.set_long_name("show-processes-tab"); proc_tab.set_short_name('p'); proc_tab.set_description(_("Show the Processes tab")); Glib::OptionEntry res_tab; res_tab.set_long_name("show-resources-tab"); res_tab.set_short_name('r'); res_tab.set_description(_("Show the Resources tab")); Glib::OptionEntry fs_tab; fs_tab.set_long_name("show-file-systems-tab"); fs_tab.set_short_name('f'); fs_tab.set_description(_("Show the File Systems tab")); Glib::OptionEntry show_version; show_version.set_long_name("version"); show_version.set_description(_("Show the application’s version")); this->add_entry(proc_tab, this->show_processes_tab); this->add_entry(res_tab, this->show_resources_tab); this->add_entry(fs_tab, this->show_file_systems_tab); this->add_entry(show_version, this->print_version); } }