code: def alias_list(self, args: argparse.Namespace) -> None:
          
          if args.name:
              for cur_name in utils.remove_duplicates(args.name):
                  if cur_name in self.aliases:
                      self.poutput("alias create {} {}".format(cur_name, self.aliases[cur_name]))
                  else:
                      self.perror("Alias '{}' not found".format(cur_name), traceback_war=False)
          else:
              sorted_aliases = utils.alphabetical_sort(self.aliases)
              for cur_alias in sorted_aliases:
                  self.poutput("alias create {} {}".format(cur_alias, self.aliases[cur_alias]))
docs: List some or all aliases