Total Complexity | 1 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | """ |
||
13 | class SDoc2Command(BaseCommand): |
||
14 | """ |
||
15 | Parses a SDoc2 document |
||
16 | |||
17 | sdoc2 |
||
18 | {config.cfg : The name of the config file} |
||
19 | {main.sdoc2 : The SDoc2 document to parse} |
||
20 | """ |
||
21 | |||
22 | # ------------------------------------------------------------------------------------------------------------------ |
||
23 | def handle(self): |
||
24 | """ |
||
25 | Reads the arguments and starts SDoc application. |
||
26 | """ |
||
27 | self.output = SdocStyle(self.input, self.output) |
||
28 | |||
29 | sdoc = SDoc() |
||
30 | sdoc.io = self.output |
||
31 | sdoc.config_path = self.input.get_argument('config.cfg') |
||
32 | sdoc.init() |
||
33 | |||
34 | return sdoc.run_sdoc2(self.input.get_argument('main.sdoc2')) |
||
35 | |||
37 |