tabify(text : str, options : argparse.Namespace|str) -> str

    >>> tabify('        (println "hello world")', '--tab=3')
     '\t\t  (println "hello world")'

    Replace spaces with tabs

def tabify(text, options):
    """ tabify(text : str, options : argparse.Namespace|str) -> str

    >>> tabify('        (println "hello world")', '--tab=3')
     '\t\t  (println "hello world")'

    Replace spaces with tabs
    """
    opts = parse_options(options)
    if opts.tab_size < 1:
        return text
    else:
        tab_equiv = ' ' * opts.tab_size
        return text.replace(tab_equiv, '\t')