Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(6)  |  Derive(0)  |  Import(0)
Prints out help for the commands. 

lamson help

You can get help for one command with:

lamson help -for STR

        def help_command(**options):
    """
    Prints out help for the commands. 

    lamson help

    You can get help for one command with:

    lamson help -for STR
    """
    if "for" in options:
        help_text = args.help_for_command(lamson.commands, options['for'])
        if help_text:
            print help_text
        else:
            args.invalid_command_message(lamson.commands, exit_on_error=True)
    else:
        print "Available commands:\n"
        print ", ".join(args.available_commands(lamson.commands))
        print "\nUse lamson help -for  to find out more."
        


src/l/a/lamson-HEAD/tests/lamson_tests/command_tests.py   lamson(Download)
def test_help_command():
    commands.help_command()
    commands.help_command(**{'for': 'status'})
 
    # test with an invalid command
    commands.help_command(**{'for': 'invalid_command'})

src/l/a/lamson-1.3.4/tests/lamson_tests/command_tests.py   lamson(Download)
def test_help_command():
    commands.help_command()
    commands.help_command(**{'for': 'status'})
 
    # test with an invalid command
    commands.help_command(**{'for': 'invalid_command'})