def METHOD_NAME(args):
    """
    Executes the *software* subprogram with parsed commandline *args*.
    """
    sw_dir = get_sw_dir()
    # just print the cache location?
    if args.location:
        print(sw_dir)
        return
    # just print the list of dependencies?
    if args.print_deps:
        print(",".join(args.deps))
        return
    # just remove the current software cache?
    if args.remove:
        remove_software_cache(sw_dir)
        return
    # rebuild the software cache
    build_software_cache(sw_dir, dep_names=args.deps)