Skip to content

Commit a6b125c

Browse files
committed
Refactor option
1 parent 88547c9 commit a6b125c

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

pyarmor/docs/en/user/configuration.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ Set option value. For example::
132132
- 1: only rename position-only arguments
133133
- 2: rename all the arguments except keyword-only arguments
134134
- 3: rename all the arguments
135-
* - enable_auto_export
135+
* - auto_export_mode
136136
- Bool
137137
- 0
138138
- Export all the names list in the module attribute `__all__`

pyarmor/docs/en/user/tutorials.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,9 @@ First create one project with package `tomjson`::
155155

156156
Because the package will be imported by outer scripts, the exported classes and functions can't be renamed
157157

158-
In order to keep these names, one way is to enable option `enable_auto_export`::
158+
In order to keep these names, one way is to enable option `auto_export_mode`::
159159

160-
$ pyarmor env -p set rft:enable_auto_export 1
160+
$ pyarmor env -p set rft:auto_export_mode 1
161161

162162
Thus all the names list in the module attribute ``__all__`` aren't changed, and
163163

pyarmor/docs/zh/user/configuration.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ rft
132132
- 1: 仅重命名 posonly 参数
133133
- 2: 仅保留 kwonly 的参数名称,其他都重命名
134134
- 3: 重命名所有函数的参数(默认值)
135-
* - enable_auto_export
135+
* - auto_export_mode
136136
- 布尔
137137
- 0
138138
- 是否输出模块属性 `__all__` 中列出的名称

pyarmor/docs/zh/user/tutorials.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,9 @@ Pyarmor 发布在 PyPI 上面,使用下面的命令直接安装::
159159

160160
因为外部模块需要导入包中的类和函数,所以这些输出的名称不能进行重命名
161161

162-
这就需要启用自动输出选项 `enable_auto_export`::
162+
这就需要启用自动输出选项 `auto_export_mode`::
163163

164-
$ pyarmor env -p set rft:enable_auto_export 1
164+
$ pyarmor env -p set rft:auto_export_mode 1
165165

166166
这样的话,模块属性 ``__all__`` 中列出的名称不会被重命名
167167

0 commit comments

Comments
 (0)