def parse_arguments(parser):
    """Parse command line arguments
    """

    parser.add_argument("file", type=str,
                        help="filename to proceed <STR, .txt file>")
    parser.add_argument("-s", "--space", type=int, default=1,
                        help="space between occurrences of words (measured by sentences) <INT, default=1>")
    parser.add_argument("-w", "--word", type=int, default=4,
                        help="length of words to check <INT, default=4, min=3>")
    parser.add_argument("-v", "--verbose", action="store_true", help="print output to terminal")
    arguments = parser.parse_args()
    return arguments