File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ def clamp(n, _min, _max):
64
64
65
65
66
66
@click .command (name = "sync" )
67
+ @click .pass_context
67
68
@click .argument (
68
69
"repo_terms" , type = click .STRING , nargs = - 1 , shell_complete = get_repo_completions
69
70
)
@@ -83,7 +84,7 @@ def clamp(n, _min, _max):
83
84
default = False ,
84
85
help = "Exit immediately when encountering an error syncing multiple repos" ,
85
86
)
86
- def sync (repo_terms , config , exit_on_error : bool ) -> None :
87
+ def sync (ctx , repo_terms , config , exit_on_error : bool ) -> None :
87
88
if config :
88
89
configs = load_configs ([config ])
89
90
else :
@@ -108,7 +109,8 @@ def sync(repo_terms, config, exit_on_error: bool) -> None:
108
109
filter_repos (configs , dir = dir , vcs_url = vcs_url , name = name )
109
110
)
110
111
else :
111
- found_repos = configs
112
+ click .echo (ctx .get_help (), color = ctx .color )
113
+ ctx .exit ()
112
114
113
115
for repo in found_repos :
114
116
try :
You can’t perform that action at this time.
0 commit comments