예제 #1
0
CurrentCommand::CurrentCommand
(   string const& p_command_word,
    vector<string> const& p_aliases,
    TimeLog& p_time_log
):
    Command
    (   p_command_word,
        p_aliases,
        "Print name of current activity",
        vector<HelpLine>
        {   HelpLine
            (   "Print the name of the current activity, or print a blank line if "
                    "currently inactive"
            )
        },
        false
    ),
    m_time_log(p_time_log)
{
    add_option
    (   's',
        "Do not terminate output with a newline",
        &m_suppress_newline
    );
}
예제 #2
0
파일: help_command.cpp 프로젝트: jahrsg/swx
HelpCommand::HelpCommand
(   string const& p_command_word,
    vector<string> const& p_aliases,
    CommandManager const& p_command_manager
):
    Command
    (   p_command_word,
        p_aliases,
        "Print usage information",
        vector<HelpLine>
        {   HelpLine("Print general usage information"),
            HelpLine("Print usage information for COMMAND", "<COMMAND>")
        }
    ),
    m_command_manager(p_command_manager)
{
}
예제 #3
0
파일: edit_command.cpp 프로젝트: jahrsg/swx
EditCommand::EditCommand
(   string const& p_command_word,
    vector<string> const& p_aliases
):
    Command
    (   p_command_word,
        p_aliases,
        "Open the activity log or configuration file in a text editor",
        vector<HelpLine>
        {   HelpLine
            (   "Open the activity log in a text editor; the editor used is "
                    "determined by the \"editor\" configuration setting"
            )
        },
        false
    )
{
    add_option
    (   'c',
        "Instead of opening the activity log, open the configuration file",
        &m_open_config_file
    );
}
예제 #4
0
파일: ToolButton.cpp 프로젝트: koz4k/soccer
Bar::Item& ToolButton::Help(const char *help)
{
	HelpLine(help);
	return *this;
}
예제 #5
0
Bar::Item& MenuItemBase::Help(const char *s)
{
	HelpLine(s);
	return *this;
}