Flask CLI should exit non-zero on error
root@dashboard-664677d446-txzpk:/app# flask cli user create test@example.com
[2024-01-23 12:20:22,509] INFO in app: WERKZEUG_RUN_MAIN: unset
[2024-01-23 12:20:22,509] INFO in app: Not running initialization code (dev or cli mode).
[2024-01-23 12:20:22,520] INFO in cli: Creating user with email: (test@example.com)
root@dashboard-664677d446-txzpk:/app# echo $?
0
root@dashboard-664677d446-txzpk:/app# flask cli user create test@example.com
[2024-01-23 12:20:26,556] INFO in app: WERKZEUG_RUN_MAIN: unset
[2024-01-23 12:20:26,557] INFO in app: Not running initialization code (dev or cli mode).
[2024-01-23 12:20:26,566] INFO in cli: Creating user with email: (test@example.com)
[2024-01-23 12:20:26,592] INFO in cli: User already exists. Not recreating
root@dashboard-664677d446-txzpk:/app# echo $?
0
would expect a non-zero exit code for the second case, ideally different from 1 though so it can be distinguished from an unexpected error