def generate_license(args):
    '''
    Creates a LICENSE or LICENSE.txt file in the current directory. Reads from
    the 'assets' folder and looks for placeholders enclosed in curly braces.

    Arguments:
        - (tuple) Name, email, license, project, ext, year
    '''

    with open(cwd + licenses_loc + args[2]) as f:
        license = f.read()

    license = license.format(name=args[0],
                             email=args[1],
                             license=args[2],
                             project=args[3],
                             year=args[5])

    with open('LICENSE' + args[4], 'w') as f:
        f.write(license)
        print('licenser: license file added to current directory')
Creates a LICENSE or LICENSE.txt file in the current directory. Reads from
    the 'assets' folder and looks for placeholders enclosed in curly braces.

    Arguments:
        - (tuple) Name, email, license, project, ext, year