Exemple #1
0
def interpret_sys_argv():
    """Interpret the args from a command line"""
    options, not_options = divide(strip_puv(sys.argv[1:]), is_option)
    options = separate_options(options)
    files = de_duplicate([tab_complete(a) for a in not_options])
    known_files = script_paths.get(files)
    if known_files:
        return known_files, options
    text_files = map(textify, map(tab_complete, files))
    return text_files, options