Skip to content

Commit 1ee6447

Browse files
committed
move exit util after commands
1 parent 942775d commit 1ee6447

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

qbpm/main.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@
1313
CONTEXT_SETTINGS = dict(help_option_names=["-h", "--help"])
1414

1515

16-
def exit_with(result: bool):
17-
exit(0 if result else 1)
18-
19-
2016
@click.group(context_settings=CONTEXT_SETTINGS)
2117
@click.option(
2218
"-P",
@@ -130,5 +126,9 @@ def then_launch(profile: Profile, foreground: bool, qb_args: list[str]) -> bool:
130126
return result
131127

132128

129+
def exit_with(result: bool):
130+
exit(0 if result else 1)
131+
132+
133133
if __name__ == "__main__":
134134
main(obj={})

0 commit comments

Comments
 (0)