code: def preloop(self):
          
          if not self.parser:
              self.stdout.write("Welcome to imagemounter {version}".format(version=__version__))
              self.stdout.write("\n")
  
              self.parser = ImageParser()
              for p in self.args.paths:
                  self.onecmd('disk "{}"'.format(p))
docs: if the parser is not already set, loads the parser.