示例#1
0
    def get_as_args(self, subsection=None, return_dict=False):
        if subsection:
            self.set_section_to(subsection)
        self.read()
        arg_d = arglist_parse_to_dict(self.items())

        if return_dict:
            return arg_d

        return Arguments(arg_d)
示例#2
0
 def run_set(self, args):
     print "Setting {} properties ...".format(self.name)
     prop_d = arglist_parse_to_dict(args.set)
     self.config.set_write(prop_d)