Commit 535f9e4
authored
chore(cli): make --help cmd exit normally without error log (#30)
Remove the false alarm error message in cli.
Before:
```
❯ aenv build --help
Usage: aenv build [OPTIONS]
Build Docker images with real-time progress display.
This command builds Docker images from your project and provides real-time
progress updates with beautiful UI components.
Examples: aenv build aenv build --image-name myapp --image-tag v1.0
aenv build --work-dir ./myproject --registry myregistry.com
Options:
-w, --work-dir DIRECTORY Working directory for the build
-n, --image-name TEXT Name for the Docker image
-t, --image-tag TEXT Tags for the Docker image (can be used multiple
times)
-r, --registry TEXT Docker registry URL
-s, --namespace TEXT Namespace for the Docker image
--push / --no-push Push image to registry after build
-p, --platform TEXT Platform for the Docker image
--help Show this message and exit.
❌ Error: Unexpected error: 0
```
Currently:
```
❯ aenv build --help
Usage: aenv build [OPTIONS]
Build Docker images with real-time progress display.
This command builds Docker images from your project and provides real-time
progress updates with beautiful UI components.
Examples: aenv build aenv build --image-name myapp --image-tag v1.0
aenv build --work-dir ./myproject --registry myregistry.com
Options:
-w, --work-dir DIRECTORY Working directory for the build
-n, --image-name TEXT Name for the Docker image
-t, --image-tag TEXT Tags for the Docker image (can be used multiple
times)
-r, --registry TEXT Docker registry URL
-s, --namespace TEXT Namespace for the Docker image
--push / --no-push Push image to registry after build
-p, --platform TEXT Platform for the Docker image
--help Show this message and exit.
```1 parent 93ff27c commit 535f9e4
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
84 | 87 | | |
85 | 88 | | |
86 | 89 | | |
| |||
0 commit comments