Skip to content

Commit cf97f66

Browse files
committed
feat: add snippet about disabling optimizer
1 parent 2e09283 commit cf97f66

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

docs/0.5.1-alpha/getting_started/usage.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,3 +162,11 @@ $ cat ~/.bashrc
162162
source <(amber completion)
163163
...
164164
```
165+
166+
### Disabling the Optimizer
167+
168+
The optimizer is still being improved. If you encounter any issues with optimization, you can disable it using an environment variable:
169+
170+
```sh
171+
AMBER_NO_OPTIMIZE=1 amber ...
172+
```

docs/0.5.1-alpha/getting_started/whats_new.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,11 @@ my_array=(1 2 3)
7575
echo "${my_array[@]}"
7676
```
7777

78-
For now, this optimizer works for simple expressions, but it will be improved as we continue to develop Amber.
78+
For now, this optimizer works for simple expressions, but it will be improved as we continue to develop Amber. It's still an alpha version, so if you suspect that it works incorrectly, you can disable it with an environment variable:
79+
80+
```sh
81+
AMBER_NO_OPTIMIZE=1 amber ...
82+
```
7983

8084
# Reversed range support <!-- #753 -->
8185

docs/0.6.0-alpha/getting_started/usage.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,3 +162,11 @@ $ cat ~/.bashrc
162162
source <(amber completion)
163163
...
164164
```
165+
166+
### Disabling the Optimizer
167+
168+
The optimizer is still being improved. If you encounter any issues with optimization, you can disable it using an environment variable:
169+
170+
```sh
171+
AMBER_NO_OPTIMIZE=1 amber ...
172+
```

0 commit comments

Comments
 (0)