# Path: yithlibraryserver/compat.py
# PY3 = sys.version_info[0] == 3


import optparse
import textwrap
import sys
from pyramid.paster import bootstrap
from yithlibraryserver.compat import PY3
# Yith Library Server is a password storage server.
# Copyright (C) 2013 Lorenzo Gil Sanchez <lorenzo.gil.sanchez@gmail.com>
#
# This file is part of Yith Library Server.
#
# Yith Library Server is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Yith Library Server is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with Yith Library Server.  If not, see <http://www.gnu.org/licenses/>.





def safe_print(value):
    if PY3:  # pragma: no cover
        print(value)
    else:  # pragma: no cover
        print(value.encode('utf-8'))


def setup_simple_command(name, description):

# Path: yithlibraryserver/compat.py
# PY3 = sys.version_info[0] == 3


# Path: yithlibraryserver/scripts/utils.py
import optparse
import textwrap
import sys
from pyramid.paster import bootstrap
from yithlibraryserver.compat import PY3

# Yith Library Server is a password storage server.
# Copyright (C) 2013 Lorenzo Gil Sanchez <lorenzo.gil.sanchez@gmail.com>
#
# This file is part of Yith Library Server.
#
# Yith Library Server is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Yith Library Server is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with Yith Library Server.  If not, see <http://www.gnu.org/licenses/>.





def safe_print(value):
    if PY3:  # pragma: no cover
        print(value)
    else:  # pragma: no cover
        print(value.encode('utf-8'))


def setup_simple_command(name, description):

    usage = name + ": %prog config_uri"