def populate_user_patterns(conf, args):
    """Populate a dictionary of configuration pattern parameters, "conf", from
       values supplied on the command line in the structure, "args"."""
    conf = {}

    if args.cc_define1_pattern:
        conf['cc_define1_pattern'] = args.cc_define1_pattern
    if args.cc_define2_pattern:
        conf['cc_define2_pattern'] = args.cc_define2_pattern
    if args.cc_incdir_pattern:
        conf['cc_incdir_pattern'] = args.cc_incdir_pattern
    if args.cc_input_pattern:
        conf['cc_input_pattern'] = args.cc_input_pattern
    if args.cc_output_pattern:
        conf['cc_output_pattern'] = args.cc_output_pattern
    if args.ld_input_pattern:
        conf['ld_input_pattern'] = args.ld_input_pattern
    if args.ld_output_pattern:
        conf['ld_output_pattern'] = args.ld_output_pattern

    return conf