diff options
Diffstat (limited to 'patchtree/cli.py')
| -rw-r--r-- | patchtree/cli.py | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/patchtree/cli.py b/patchtree/cli.py index f127d1c..83b955d 100644 --- a/patchtree/cli.py +++ b/patchtree/cli.py @@ -132,14 +132,11 @@ def main(): context = parse_arguments(config) - patch = context.make_patch() - - if not context.in_place: - context.output.write(patch) - context.output.flush() - context.output.close() + if context.in_place: + context.apply(True) + context.apply(False) else: - raise NotImplementedError("TODO") + context.write() return 0 |