diff options
author | Marian Beermann <public@enkore.de> | 2016-05-25 22:01:38 +0200 |
---|---|---|
committer | Marian Beermann <public@enkore.de> | 2016-05-25 22:01:38 +0200 |
commit | 0e3bba7b640269595b2ed791fa2b9b18dd006bb7 (patch) | |
tree | b0f2edf0a32dcb83ec59132e19c5055e277dbd29 /setup.py | |
parent | 4302ffbdbc08a43a59001ffd3e184f4caef330af (diff) |
Don't rebuild command line parser for each invocation
Makes tests faster
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -159,7 +159,7 @@ class build_usage(Command): print('generating usage docs') # allows us to build docs without the C modules fully loaded during help generation from borg.archiver import Archiver - parser = Archiver().build_parser(prog='borg') + parser = Archiver(prog='borg').parser choices = {} for action in parser._actions: if action.choices is not None: |