Commit a2be736
committed
fix(cli): allow --changelog flag without specifying version
Fixes bounty issue #1385
When running 'cortex upgrade --changelog' without specifying a version,
the command would exit early if the user was already on the latest version,
before displaying the changelog. This fix moves the early exit check to
after the changelog display, so the changelog is always shown when
requested regardless of whether an upgrade is available.1 parent 771ba8f commit a2be736
1 file changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | | - | |
172 | | - | |
| 171 | + | |
| 172 | + | |
173 | 173 | | |
174 | | - | |
175 | 174 | | |
176 | 175 | | |
177 | 176 | | |
| |||
191 | 190 | | |
192 | 191 | | |
193 | 192 | | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
194 | 198 | | |
195 | 199 | | |
196 | 200 | | |
| |||
0 commit comments