code: def get_ordered_options(self, hidden=False):
          
          return [opt.as_dict() for opt in self.options.values() \
                                              if hidden or (not opt.hidden)]
docs: :param hidden: whether to return hidden option
          :type hidden: bool
          :returns: **ordered** list of options pre-serialised (as_dict)
          :rtype: list `[opt_dict, ...]`