Skip to content

Commit 7c66b11

Browse files
committed
Deploying to gh-pages from @ a92dbdc 🚀
1 parent c896029 commit 7c66b11

9 files changed

Lines changed: 50 additions & 2 deletions

File tree

exit_codes/index.html

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2486,6 +2486,20 @@ <h3 id="using-no-raise-flag">Using <code>--no-raise</code> Flag<a class="headerl
24862486
<li><strong>Mixed format</strong>: <code>21,NO_COMMITS_FOUND,4</code></li>
24872487
</ul>
24882488
<p>Multiple exit codes can be specified as a comma-separated list.</p>
2489+
<div class="admonition warning">
2490+
<p class="admonition-title">Flag placement</p>
2491+
<p><code>--no-raise</code> / <code>-nr</code> is a <strong>top-level Commitizen flag</strong>, so it must be passed
2492+
<strong>before</strong> the subcommand:</p>
2493+
<div class="highlight"><pre><span></span><code>cz<span class="w"> </span>--no-raise<span class="w"> </span><span class="m">21</span><span class="w"> </span>bump<span class="w"> </span>--yes<span class="w"> </span><span class="c1"># ✅ correct</span>
2494+
cz<span class="w"> </span>-nr<span class="w"> </span><span class="m">21</span><span class="w"> </span>bump<span class="w"> </span>--yes<span class="w"> </span><span class="c1"># ✅ correct (short form)</span>
2495+
</code></pre></div>
2496+
<p>Placing it after the subcommand fails with exit code 18
2497+
(<code>InvalidCommandArgumentError</code>):</p>
2498+
<div class="highlight"><pre><span></span><code>cz<span class="w"> </span>bump<span class="w"> </span>--yes<span class="w"> </span>--no-raise<span class="w"> </span><span class="m">21</span><span class="w"> </span><span class="c1"># ❌ wrong</span>
2499+
<span class="c1"># Invalid commitizen arguments were found: `--no-raise`.</span>
2500+
<span class="c1"># Please use -- separator for extra git args</span>
2501+
</code></pre></div>
2502+
</div>
24892503
<h3 id="common-use-cases">Common Use Cases<a class="headerlink" href="#common-use-cases" title="Permanent link">&para;</a></h3>
24902504
<h4 id="ignoring-no-increment-errors">Ignoring No Increment Errors<a class="headerlink" href="#ignoring-no-increment-errors" title="Permanent link">&para;</a></h4>
24912505
<p>The most common use case is to ignore <code>NoneIncrementExit</code> (exit code 21) when running <code>cz bump</code>. This allows the command to succeed even when no commits are eligible for a version bump:</p>
@@ -2560,7 +2574,7 @@ <h3 id="example-cicd-pipeline">Example: CI/CD Pipeline<a class="headerlink" href
25602574
<span class="md-icon" title="Last update">
25612575
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1zM12.5 7v5.2l4 2.4-1 1L11 13V7zM11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2z"/></svg>
25622576
</span>
2563-
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date" title="December 10, 2025 14:53:22 UTC">December 10, 2025</span>
2577+
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date" title="May 12, 2026 01:58:49 UTC">May 12, 2026</span>
25642578
</span>
25652579

25662580

exit_codes/index.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,23 @@ The `--no-raise` (or `-nr`) flag allows you to specify exit codes that should no
5757

5858
Multiple exit codes can be specified as a comma-separated list.
5959

60+
Flag placement
61+
62+
`--no-raise` / `-nr` is a **top-level Commitizen flag**, so it must be passed **before** the subcommand:
63+
64+
```
65+
cz --no-raise 21 bump --yes # ✅ correct
66+
cz -nr 21 bump --yes # ✅ correct (short form)
67+
```
68+
69+
Placing it after the subcommand fails with exit code 18 (`InvalidCommandArgumentError`):
70+
71+
```
72+
cz bump --yes --no-raise 21 # ❌ wrong
73+
# Invalid commitizen arguments were found: `--no-raise`.
74+
# Please use -- separator for extra git args
75+
```
76+
6077
### Common Use Cases
6178

6279
#### Ignoring No Increment Errors

images/cli_interactive/bump.gif

109 Bytes
Loading

images/cli_interactive/commit.gif

-931 Bytes
Loading

images/cli_interactive/init.gif

123 Bytes
Loading
-390 Bytes
Loading
1.08 KB
Loading

llms-full.txt

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,23 @@ The `--no-raise` (or `-nr`) flag allows you to specify exit codes that should no
465465

466466
Multiple exit codes can be specified as a comma-separated list.
467467

468+
Flag placement
469+
470+
`--no-raise` / `-nr` is a **top-level Commitizen flag**, so it must be passed **before** the subcommand:
471+
472+
```
473+
cz --no-raise 21 bump --yes # ✅ correct
474+
cz -nr 21 bump --yes # ✅ correct (short form)
475+
```
476+
477+
Placing it after the subcommand fails with exit code 18 (`InvalidCommandArgumentError`):
478+
479+
```
480+
cz bump --yes --no-raise 21 # ❌ wrong
481+
# Invalid commitizen arguments were found: `--no-raise`.
482+
# Please use -- separator for extra git args
483+
```
484+
468485
### Common Use Cases
469486

470487
#### Ignoring No Increment Errors

search/search_index.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)