def set_option(self): """Set the options""" Application.set_option(self) if len(self.args) == 0: error("Pcap file must be given!") sys.exit(1)
def set_option(self): """Set the options""" Application.set_option(self) if len(self.args) == 0: error("Pcap file must be given!") sys.exit(1)
def set_option(self): """Set options""" Application.set_option(self) # correct numbers of arguments? if len(self.args) == 0: self.parser.error("incorrect number of arguments.") # latex object self._latex = UmLatex(self.options.texfile, self.options.outdir, self.options.force, self.options.debug)
def set_option(self): """Set options""" Application.set_option(self) if len(self.args) < 1: error("no input files, stop.") sys.exit(1) if not os.path.exists(self.options.outdir): info("%s does not exist, creating. " % self.options.outdir) os.mkdir(self.options.outdir) if self.options.graphics: self.graphics_array = self.options.graphics.split(',') else: self.graphics_array = ['tput','cwnd','rtt','segments']
def set_option(self): """Set options""" Application.set_option(self) # correct numbers of arguments? if len(self.args) == 0: self.parser.error("incorrect number of arguments") # latex object self._latex = UmLatex(self.options.texfile, self.options.outdir, self.options.force, self.options.debug, tikz = False) # use sans serif font and set the correct font size self._latex.setDocumentclass("scrartcl", "fontsize=%spt" %self.options.fontsize) self._latex.addSetting(r"\renewcommand{\familydefault}{\sfdefault}") self._latex.addSetting(r"\usepackage{sfmath}")
def set_option(self): """Set options""" Application.set_option(self) # correct numbers of arguments? if len(self.args) == 0: self.parser.error("incorrect number of arguments") # latex object self._latex = UmLatex(self.options.texfile, self.options.outdir, self.options.force, self.options.debug, tikz=False) # use sans serif font and set the correct font size self._latex.setDocumentclass("scrartcl", "fontsize=%spt" % self.options.fontsize) self._latex.addSetting(r"\renewcommand{\familydefault}{\sfdefault}") self._latex.addSetting(r"\usepackage{sfmath}")
def set_option(self): """Set options""" Application.set_option(self)
def set_option(self): """Set options""" Application.set_option(self)