def load_args(self, args):
    'Update this profile from the given dictionary of command line\n        arguments. The argument names must match the profile attributes\n        '
    for (k, v) in args.iteritems():
        k = re.sub('^-+', '', k)
        k = re.sub('-', '_', k)
        if (v and hasattr(self, k)):
            for single in v.split(' '):
                tup = single.split('=')
                if (len(tup) == 1):
                    setattr(self, k, single)
                else:
                    spec_profile = self.specs.get(tup[0], Profile())
                    setattr(spec_profile, k, tup[1])
                    self.specs[tup[0]] = spec_profile
Update this profile from the given dictionary of command line
arguments. The argument names must match the profile attributes
def load_args(self, args):
    'Update this profile from the given dictionary of command line\n        arguments. The argument names must match the profile attributes\n        '
    for (k, v) in args.iteritems():
        k = re.sub('^-+', , k)
        k = re.sub('-', '_', k)
        if (v and hasattr(self, k)):
            for single in v.split(' '):
                tup = single.split('=')
                if (len(tup) == 1):
                    setattr(self, k, single)
                else:
                    spec_profile = self.specs.get(tup[0], Profile())
                    setattr(spec_profile, k, tup[1])
                    self.specs[tup[0]] = spec_profile