(self)
| 41 | self._descriptions[argName] = description |
| 42 | |
| 43 | def help(self): |
| 44 | print('Example usage: flow --imgdir sample_img/ --model cfg/yolo.cfg --load bin/yolo.weights') |
| 45 | print('') |
| 46 | print('Arguments:') |
| 47 | spacing = max([len(i) for i in self._descriptions.keys()]) + 2 |
| 48 | for item in self._descriptions: |
| 49 | currentSpacing = spacing - len(item) |
| 50 | print(' --' + item + (' ' * currentSpacing) + self._descriptions[item]) |
| 51 | print('') |
| 52 | exit() |
| 53 | |
| 54 | def parseArgs(self, args): |
| 55 | print('') |