<s> import click <EOL> from . . models import Post <EOL> @ click . command ( ) <EOL> @ click . option ( '<STR_LIT>' , default = None , help = '<STR_LIT>' ) <EOL> def cli ( title ) : <EOL> "<STR_LIT>" <EOL> posts = Post . objects <EOL> if title : <EOL> posts = posts ( title = title ) <EOL> for post in posts : <EOL> click . echo ( post ) </s>
