(self, arguments=None)
| 135 | self.progress_bar_enabled = not self.is_stdin |
| 136 | |
| 137 | def run(self, arguments=None): |
| 138 | LogFileTool.run(self, arguments, get_unknowns=True) |
| 139 | |
| 140 | self.parse_logevents() |
| 141 | self.group() |
| 142 | |
| 143 | if self.args['overlay'] == 'reset': |
| 144 | self.remove_overlays() |
| 145 | |
| 146 | # if --overlay is set, save groups in a file, else load groups and plot |
| 147 | if self.args['overlay'] == "list": |
| 148 | self.list_overlays() |
| 149 | raise SystemExit |
| 150 | |
| 151 | plot_specified = (not sys.stdin.isatty() or |
| 152 | len(self.args['logfile']) > 0) |
| 153 | |
| 154 | # if no plot is specified (either pipe or filename(s)) and reset, |
| 155 | # quit now |
| 156 | if not plot_specified and self.args['overlay'] == 'reset': |
| 157 | raise SystemExit |
| 158 | |
| 159 | if self.args['overlay'] == "" or self.args['overlay'] == "add": |
| 160 | if plot_specified: |
| 161 | self.save_overlay() |
| 162 | else: |
| 163 | print("Nothing to plot.") |
| 164 | raise SystemExit |
| 165 | |
| 166 | # else plot (with potential overlays) if there is something to plot |
| 167 | overlay_loaded = self.load_overlays() |
| 168 | |
| 169 | if plot_specified or overlay_loaded: |
| 170 | self.plot() |
| 171 | else: |
| 172 | print("Nothing to plot.") |
| 173 | raise SystemExit |
| 174 | |
| 175 | def parse_logevents(self): |
| 176 | multiple_files = False |
no test coverage detected