def _bse_cli_list_formats(args):
    '''Handles the list-formats subcommand'''
    all_formats = api.get_formats()

    if args.no_description:
        liststr = all_formats.keys()
    else:
        liststr = format_columns(all_formats.items())

    return '\n'.join(liststr)
def _bse_cli_list_formats ( args ) : all_formats = api . get_formats ( ) if args . no_description : liststr = all_formats . keys ( ) else : liststr = format_columns ( all_formats . items ( ) ) return '\n' . join ( liststr )
Handles the list-formats subcommand