@cli.command()
def edit():
    'Opens an editor with some text in it.'
    MARKER = '# Everything below is ignored\n'
    message = click.edit('\n\n{}'.format(MARKER))
    if (message is not None):
        msg = message.split(MARKER, 1)[0].rstrip('\n')
        if (not msg):
            click.echo('Empty message!')
        else:
            click.echo('Message:\n{}'.format(msg))
    else:
        click.echo('You did not enter anything!')
Opens an editor with some text in it.
@cli.command()
def edit():
    
    MARKER = '# Everything below is ignored\n'
    message = click.edit('\n\n{}'.format(MARKER))
    if (message is not None):
        msg = message.split(MARKER, 1)[0].rstrip('\n')
        if (not msg):
            click.echo('Empty message!')
        else:
            click.echo('Message:\n{}'.format(msg))
    else:
        click.echo('You did not enter anything!')