diff options
Diffstat (limited to 'subcmds')
-rw-r--r-- | subcmds/sync.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/subcmds/sync.py b/subcmds/sync.py index 93010c51..7ab0b1fb 100644 --- a/subcmds/sync.py +++ b/subcmds/sync.py | |||
@@ -117,6 +117,8 @@ later is required to fix a server side protocol bug. | |||
117 | """ | 117 | """ |
118 | 118 | ||
119 | def _Options(self, p, show_smart=True): | 119 | def _Options(self, p, show_smart=True): |
120 | self.jobs = self.manifest.default.sync_j | ||
121 | |||
120 | p.add_option('-f', '--force-broken', | 122 | p.add_option('-f', '--force-broken', |
121 | dest='force_broken', action='store_true', | 123 | dest='force_broken', action='store_true', |
122 | help="continue sync even if a project fails to sync") | 124 | help="continue sync even if a project fails to sync") |
@@ -134,7 +136,8 @@ later is required to fix a server side protocol bug. | |||
134 | help='be more quiet') | 136 | help='be more quiet') |
135 | p.add_option('-j','--jobs', | 137 | p.add_option('-j','--jobs', |
136 | dest='jobs', action='store', type='int', | 138 | dest='jobs', action='store', type='int', |
137 | help="number of projects to fetch simultaneously") | 139 | default=self.jobs, |
140 | help="projects to fetch simultaneously (default %d)" % self.jobs) | ||
138 | if show_smart: | 141 | if show_smart: |
139 | p.add_option('-s', '--smart-sync', | 142 | p.add_option('-s', '--smart-sync', |
140 | dest='smart_sync', action='store_true', | 143 | dest='smart_sync', action='store_true', |