# Path: lib/clipboard.py
# def text_to_clipboards(text):
# def to_primary(text):
# def to_clipboard(text):
# def read_primary():
# def read_clipboard():
# def clear_both_clipboards():
# def clear_primary():
# def clear_clipboard():
# 
# Path: lib/fs.py
# def check_if_available(prg, msg):


import sys
import config as cfg
from lib import clipboard as cb
from lib import fs
from pathlib import Path
#!/usr/bin/env python3

"""
print the content of the clipboard to the standard output

Last update: 2017-01-08 (yyyy-mm-dd)
"""



fs.check_if_available(cfg.XSEL, "Error: {} is not available!".format(cfg.XSEL))


def print_help():
    print("""
Usage: {0} [options]

Options:
    -h, --help        this help
    -1                read from primary clipboard (default)
    -2                read from secondary clipboard
""".strip().format(Path(sys.argv[0]).name))


def process_parameters(params):
    for e in params:
        if e == "-1":

# Path: lib/clipboard.py
# def text_to_clipboards(text):
# def to_primary(text):
# def to_clipboard(text):
# def read_primary():
# def read_clipboard():
# def clear_both_clipboards():
# def clear_primary():
# def clear_clipboard():
# 
# Path: lib/fs.py
# def check_if_available(prg, msg):


# Path: cb.py
import sys
import config as cfg
from lib import clipboard as cb
from lib import fs
from pathlib import Path

#!/usr/bin/env python3

"""
print the content of the clipboard to the standard output

Last update: 2017-01-08 (yyyy-mm-dd)
"""



fs.check_if_available(cfg.XSEL, "Error: {} is not available!".format(cfg.XSEL))


def print_help():
    print("""
Usage: {0} [options]

Options:
    -h, --help        this help
    -1                read from primary clipboard (default)
    -2                read from secondary clipboard
""".strip().format(Path(sys.argv[0]).name))


def process_parameters(params):
    for e in params:
        if e == "-1":

            print(cb.read_primary())