Skip to content

Commit c6c9078

Browse files
2to3: add short/long options (#19626)
1 parent e672b02 commit c6c9078

File tree

9 files changed

+54
-54
lines changed

9 files changed

+54
-54
lines changed

pages.bn/common/2to3.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,24 @@
99

1010
- একটি পাইথন 2 ফাইলকে পাইথন 3 এ রূপান্তর করুন:
1111

12-
`2to3 --write {{ফাইলের/পথ.py}}`
12+
`2to3 {{[-w|--write]}} {{ফাইলের/পথ.py}}`
1313

1414
- নির্দিষ্ট পাইথন 2 ভাষা বৈশিষ্ট্যগুলি পাইথন 3 এ রূপান্তর করুন:
1515

16-
`2to3 --write {{ফাইলের/পথ.py}} --fix {{raw_input}} --fix {{print}}`
16+
`2to3 {{[-w|--write]}} {{ফাইলের/পথ.py}} {{[-f|--fix]}} {{raw_input}} {{[-f|--fix]}} {{print}}`
1717

1818
- নির্দিষ্ট না করে সমস্ত পাইথন 2 ভাষা বৈশিষ্ট্যগুলি পাইথন 3 এ রূপান্তর করুন:
1919

20-
`2to3 --write {{ফাইলের/পথ.py}} --nofix {{has_key}} --nofix {{isinstance}}`
20+
`2to3 {{[-w|--write]}} {{ফাইলের/পথ.py}} {{[-x|--nofix]}} {{has_key}} {{[-x|--nofix]}} {{isinstance}}`
2121

2222
- পাইথন 2 থেকে পাইথন 3 এ রূপান্তর করা যাবত সমস্ত উপলব্ধ ভাষা বৈশিষ্ট্যের তালিকা প্রদর্শন করুন:
2323

24-
`2to3 --list-fixes`
24+
`2to3 {{[-l|--list-fixes]}}`
2525

2626
- একটি ডিরেক্টরিতে সমস্ত পাইথন 2 ফাইলগুলি পাইথন 3 এ রূপান্তর করুন:
2727

28-
`2to3 --output-dir {{পাথ/টু/পাইথন3_ডিরেক্টরি}} --write-unchanged-files --nobackups {{পাথ/টু/পাইথন2_ডিরেক্টরি}}`
28+
`2to3 {{[-o|--output-dir]}} {{পাথ/টু/পাইথন3_ডিরেক্টরি}} {{[-W|--write-unchanged-files]}} {{[-n|--nobackups]}} {{পাথ/টু/পাইথন2_ডিরেক্টরি}}`
2929

3030
- মাল্টিপল থ্রেড সহ ২টু৩ চালান:
3131

32-
`2to3 --processes {{4}} --output-dir {{পাথ/টু/পাইথন3_ডিরেক্টরি}} --write --nobackups --no-diff {{পাথ/টু/পাইথন2_ডিরেক্টরি}}`
32+
`2to3 {{[-j|--processes]}} {{4}} {{[-o|--output-dir]}} {{পাথ/টু/পাইথন3_ডিরেক্টরি}} {{[-w|--write]}} {{[-n|--nobackups]}} --no-diffs {{পাথ/টু/পাইথন2_ডিরেক্টরি}}`

pages.es/common/2to3.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,24 @@
1111

1212
- Convierte un archivo Python 2 a Python 3:
1313

14-
`2to3 --write {{ruta/a/archivo.py}}`
14+
`2to3 {{[-w|--write]}} {{ruta/a/archivo.py}}`
1515

1616
- Convierte funciones específicas del lenguaje Python 2 a Python 3:
1717

18-
`2to3 --write {{ruta/a/archivo.py}} --fix {{raw_input}} --fix {{print}}`
18+
`2to3 {{[-w|--write]}} {{ruta/a/archivo.py}} {{[-f|--fix]}} {{raw_input}} {{[-f|--fix]}} {{print}}`
1919

2020
- Convierte todas las funciones del lenguaje Python 2 excepto las especificadas a Python 3:
2121

22-
`2to3 --write {{ruta/a/archivo.py}} --nofix {{has_key}} --nofix {{isinstance}}`
22+
`2to3 {{[-w|--write]}} {{ruta/a/archivo.py}} {{[-x|--nofix]}} {{has_key}} {{[-x|--nofix]}} {{isinstance}}`
2323

2424
- Muestra una lista de todas las características disponibles del lenguaje que se pueden convertir de Python 2 a Python 3:
2525

26-
`2to3 --list-fixes`
26+
`2to3 {{[-l|--list-fixes]}}`
2727

2828
- Convierte todos los archivos Python 2 en un directorio a Python 3:
2929

30-
`2to3 --output-dir {{ruta/a/directorio_python3}} --write-unchanged-files --nobackups {{ruta/a/directorio_python2}}`
30+
`2to3 {{[-o|--output-dir]}} {{ruta/a/directorio_python3}} {{[-W|--write-unchanged-files]}} {{[-n|--nobackups]}} {{ruta/a/directorio_python2}}`
3131

3232
- Ejecuta 2to3 con varios hilos (threads):
3333

34-
`2to3 --processes {{1..infinity}} --output-dir {{ruta/a/directorio_python3}} --write --nobackups --no-diff {{ruta/a/directorio_python2}}`
34+
`2to3 {{[-j|--processes]}} {{1..infinity}} {{[-o|--output-dir]}} {{ruta/a/directorio_python3}} {{[-w|--write]}} {{[-n|--nobackups]}} --no-diffs {{ruta/a/directorio_python2}}`

pages.fa/common/2to3.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,24 @@
99

1010
- تبدیل فایل پایتون نسخه 2 به 3 :
1111

12-
`2to3 --write {{path/to/file.py}}`
12+
`2to3 {{[-w|--write]}} {{path/to/file.py}}`
1313

1414
- تبدیل قابلیت های خاص پایتون نسخه 2 به 3 :
1515

16-
`2to3 --write {{path/to/file.py}} --fix {{raw_input}} --fix {{print}}`
16+
`2to3 {{[-w|--write]}} {{path/to/file.py}} {{[-f|--fix]}} {{raw_input}} {{[-f|--fix]}} {{print}}`
1717

1818
- تبدیل تمامی قابلیت های نسخه 2 به 3 بغیر از ویژگی های معیین شده :
1919

20-
`2to3 --write {{path/to/file.py}} --nofix {{has_key}} --nofix {{isinstance}}`
20+
`2to3 {{[-w|--write]}} {{path/to/file.py}} {{[-x|--nofix]}} {{has_key}} {{[-x|--nofix]}} {{isinstance}}`
2121

2222
- نمایش لیست قابلیت های زبان پایتون نسخه 2 که قابلیت تبدیل به نسخه 3 را دارند :
2323

24-
`2to3 --list-fixes`
24+
`2to3 {{[-l|--list-fixes]}}`
2525

2626
- تبدیل تمامی فایل های پایتون نسخه 2 به 3 در یک مسیر :
2727

28-
`2to3 --output-dir {{path/to/python3_directory}} --write-unchanged-files --nobackups {{path/to/python2_directory}}`
28+
`2to3 {{[-o|--output-dir]}} {{path/to/python3_directory}} {{[-W|--write-unchanged-files]}} {{[-n|--nobackups]}} {{path/to/python2_directory}}`
2929

3030
- اجرای همزان(چند رشته ای) دستور 2 به 3 :
3131

32-
`2to3 --processes {{4}} --output-dir {{path/to/python3_directory}} --write --nobackups --no-diff {{path/to/python2_directory}}`
32+
`2to3 {{[-j|--processes]}} {{4}} {{[-o|--output-dir]}} {{path/to/python3_directory}} {{[-w|--write]}} {{[-n|--nobackups]}} --no-diffs {{path/to/python2_directory}}`

pages.fr/common/2to3.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,24 @@
99

1010
- Convertir un fichier Python 2 en Python 3 :
1111

12-
`2to3 --write {{chemin/vers/fichier.py}}`
12+
`2to3 {{[-w|--write]}} {{chemin/vers/fichier.py}}`
1313

1414
- Convertir des fonctionnalités spécifiques de Python 2 vers Python 3 :
1515

16-
`2to3 --write {{chemin/vers/fichier.py}} --fix {{raw_input}} --fix {{print}}`
16+
`2to3 {{[-w|--write]}} {{chemin/vers/fichier.py}} {{[-f|--fix]}} {{raw_input}} {{[-f|--fix]}} {{print}}`
1717

1818
- Convertir toutes les fonctionnalités de Python 2 vers Python 3 sauf exceptions spécifiques :
1919

20-
`2to3 --write {{chemin/vers/fichier.py}} --nofix {{has_key}} --nofix {{isinstance}}`
20+
`2to3 {{[-w|--write]}} {{chemin/vers/fichier.py}} {{[-x|--nofix]}} {{has_key}} {{[-x|--nofix]}} {{isinstance}}`
2121

2222
- Afficher une liste de toutes les fonctionnalités de language qui peuvent être converties de Python 2 vers Python 3 :
2323

24-
`2to3 --list-fixes`
24+
`2to3 {{[-l|--list-fixes]}}`
2525

2626
- Convertir tous les fichier Python2 vers Python 3 dans un dossier :
2727

28-
`2to3 --output-dir {{chemin/vers/dossier_python3}} --write-unchanged-files --nobackups {{chemin/vers/dossier_python2}}`
28+
`2to3 {{[-o|--output-dir]}} {{chemin/vers/dossier_python3}} {{[-W|--write-unchanged-files]}} {{[-n|--nobackups]}} {{chemin/vers/dossier_python2}}`
2929

3030
- Executer 2to3 avec plusieurs fil d'exécution :
3131

32-
`2to3 --processes {{4}} --output-dir {{chemin/vers/dossier_python3}} --write --nobackups --no-diff {{chemin/vers/dossier_python2}}`
32+
`2to3 {{[-j|--processes]}} {{4}} {{[-o|--output-dir]}} {{chemin/vers/dossier_python3}} {{[-w|--write]}} {{[-n|--nobackups]}} --no-diffs {{chemin/vers/dossier_python2}}`

pages.id/common/2to3.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,24 @@
1111

1212
- Alih bahasa dan tulis ulang berkas program Python 2 menuju Python 3:
1313

14-
`2to3 --write {{jalan/menuju/berkas.py}}`
14+
`2to3 {{[-w|--write]}} {{jalan/menuju/berkas.py}}`
1515

1616
- Pilih jenis fitur bahasa yang akan dialihbahasakan dari Python 2 menuju Python 3:
1717

18-
`2to3 --write {{jalan/menuju/berkas.py}} --fix {{raw_input}} --fix {{print}}`
18+
`2to3 {{[-w|--write]}} {{jalan/menuju/berkas.py}} {{[-f|--fix]}} {{raw_input}} {{[-f|--fix]}} {{print}}`
1919

2020
- Pilih jenis fitur bahasa yang dikecualikan dari proses pengalihbahasaan:
2121

22-
`2to3 --write {{jalan/menuju/file.py}} --nofix {{has_key}} --nofix {{isinstance}}`
22+
`2to3 {{[-w|--write]}} {{jalan/menuju/file.py}} {{[-x|--nofix]}} {{has_key}} {{[-x|--nofix]}} {{isinstance}}`
2323

2424
- Tampilkan daftar fitur bahasa pemrograman yang dapat dialihbahasakan dari Python 2 menuju Python 3:
2525

26-
`2to3 --list-fixes`
26+
`2to3 {{[-l|--list-fixes]}}`
2727

2828
- Alih bahasa dan tulis ulang seluruh berkas dari suatu direktori menuju direktori baru:
2929

30-
`2to3 --output-dir {{jalan/menuju/direktori_python3}} --write-unchanged-files --nobackups {{jalan/menuju/direktori_python2}}`
30+
`2to3 {{[-o|--output-dir]}} {{jalan/menuju/direktori_python3}} {{[-W|--write-unchanged-files]}} {{[-n|--nobackups]}} {{jalan/menuju/direktori_python2}}`
3131

3232
- Jalankan program ini dengan lebih dari satu thread:
3333

34-
`2to3 --processes {{4}} --output-dir {{jalan/menuju/direktori_python3}} --write --nobackups --no-diff {{jalan/menuju/direktori_python2}}`
34+
`2to3 {{[-j|--processes]}} {{4}} {{[-o|--output-dir]}} {{jalan/menuju/direktori_python3}} {{[-w|--write]}} {{[-n|--nobackups]}} --no-diffs {{jalan/menuju/direktori_python2}}`

pages.ko/common/2to3.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,24 @@
99

1010
- 파이썬 2 파일을 3 파일로 변경:
1111

12-
`2to3 --write {{경로/파일.py}}`
12+
`2to3 {{[-w|--write]}} {{경로/파일.py}}`
1313

1414
- 특정 파이썬 2 기능을 파이썬 3로 변경 (아래는 raw_input과 print를 수정하는 예):
1515

16-
`2to3 --write {{경로/파일.py}} --fix {{raw_input}} --fix {{print}}`
16+
`2to3 {{[-w|--write]}} {{경로/파일.py}} {{[-f|--fix]}} {{raw_input}} {{[-f|--fix]}} {{print}}`
1717

1818
- 특정 기능을 제외한 모든 파이썬 2 기능을 파이썬 3로 변경:
1919

20-
`2to3 --write {{경로/파일.py}} --nofix {{has_key}} --nofix {{isinstance}}`
20+
`2to3 {{[-w|--write]}} {{경로/파일.py}} {{[-x|--nofix]}} {{has_key}} {{[-x|--nofix]}} {{isinstance}}`
2121

2222
- 파이썬 2 에서 파이썬 3 로 변환할 수 있는 목록을 출력:
2323

24-
`2to3 --list-fixes`
24+
`2to3 {{[-l|--list-fixes]}}`
2525

2626
- 디렉토리 안의 모든 파이썬 2 파일을 파이썬 3로 변경:
2727

28-
`2to3 --output-dir {{파이썬3/디렉토리/경로}} --write-unchanged-files --nobackups {{파이썬2/디렉토리/경로}}`
28+
`2to3 {{[-o|--output-dir]}} {{파이썬3/디렉토리/경로}} {{[-W|--write-unchanged-files]}} {{[-n|--nobackups]}} {{파이썬2/디렉토리/경로}}`
2929

3030
- 2to3을 멀티쓰레드로 실행:
3131

32-
`2to3 --processes {{4}} --output-dir {{파이썬3/디렉토리/경로}} --write --nobackups --no-diff {{파이썬2/디렉토리/경로}}`
32+
`2to3 {{[-j|--processes]}} {{4}} {{[-o|--output-dir]}} {{파이썬3/디렉토리/경로}} {{[-w|--write]}} {{[-n|--nobackups]}} --no-diffs {{파이썬2/디렉토리/경로}}`

pages.nl/common/2to3.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,24 @@
1111

1212
- Converteer een Python 2-bestand naar Python 3:
1313

14-
`2to3 --write {{pad/naar/bestand.py}}`
14+
`2to3 {{[-w|--write]}} {{pad/naar/bestand.py}}`
1515

1616
- Converteer specifieke Python 2-taalfuncties naar Python 3:
1717

18-
`2to3 --write {{pad/naar/bestand.py}} --fix {{raw_input}} --fix {{print}}`
18+
`2to3 {{[-w|--write]}} {{pad/naar/bestand.py}} {{[-f|--fix]}} {{raw_input}} {{[-f|--fix]}} {{print}}`
1919

2020
- Converteer alle Python 2-taalfuncties behalve de gespecificeerde naar Python 3:
2121

22-
`2to3 --write {{pad/naar/bestand.py}} --nofix {{has_key}} --nofix {{isinstance}}`
22+
`2to3 {{[-w|--write]}} {{pad/naar/bestand.py}} {{[-x|--nofix]}} {{has_key}} {{[-x|--nofix]}} {{isinstance}}`
2323

2424
- Geef een lijst weer met alle beschikbare taalfuncties die kunnen worden geconverteerd van Python 2 naar Python 3:
2525

26-
`2to3 --list-fixes`
26+
`2to3 {{[-l|--list-fixes]}}`
2727

2828
- Converteer alle Python 2-bestanden in een map naar Python 3:
2929

30-
`2to3 --output-dir {{pad/naar/python3_map}} --write-unchanged-files --nobackups {{pad/naar/python2_map}}`
30+
`2to3 {{[-o|--output-dir]}} {{pad/naar/python3_map}} {{[-W|--write-unchanged-files]}} {{[-n|--nobackups]}} {{pad/naar/python2_map}}`
3131

3232
- Voer 2to3 uit met meerdere threads:
3333

34-
`2to3 --processes {{4}} --output-dir {{pad/naar/python3_map}} --write --nobackups --no-diff {{pad/naar/python2_map}}`
34+
`2to3 {{[-j|--processes]}} {{4}} {{[-o|--output-dir]}} {{pad/naar/python3_map}} {{[-w|--write]}} {{[-n|--nobackups]}} --no-diffs {{pad/naar/python2_map}}`

pages.pt_BR/common/2to3.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,24 @@
1111

1212
- Converte um arquivo feito em Python 2 para Python 3:
1313

14-
`2to3 --write {{caminho/para/arquivo.py}}`
14+
`2to3 {{[-w|--write]}} {{caminho/para/arquivo.py}}`
1515

1616
- Converte recurso específico de Python 2 para Python 3:
1717

18-
`2to3 --write {{caminho/para/arquivo.py}} --fix {{raw_input}} --fix {{print}}`
18+
`2to3 {{[-w|--write]}} {{caminho/para/arquivo.py}} {{[-f|--fix]}} {{raw_input}} {{[-f|--fix]}} {{print}}`
1919

2020
- Converte todos os recursos de Python 2 para Python 3, exceto as que específicadas:
2121

22-
`2to3 --write {{caminho/para/arquivo.py}} --nofix {{has_key}} --nofix {{isinstance}}`
22+
`2to3 {{[-w|--write]}} {{caminho/para/arquivo.py}} {{[-x|--nofix]}} {{has_key}} {{[-x|--nofix]}} {{isinstance}}`
2323

2424
- Mostra a lista de todas os recursos disponíveis que podem ser convertidas de Python 2 para Python 3:
2525

26-
`2to3 --list-fixes`
26+
`2to3 {{[-l|--list-fixes]}}`
2727

2828
- Converte todos os arquivos feitos em Python 2 em um diretório para Python 3:
2929

30-
`2to3 --output-dir {{caminho/para/arquivos_python3}} --write-unchanged-files --nobackups {{caminho/para/arquivos_python2}}`
30+
`2to3 {{[-o|--output-dir]}} {{caminho/para/arquivos_python3}} {{[-W|--write-unchanged-files]}} {{[-n|--nobackups]}} {{caminho/para/arquivos_python2}}`
3131

3232
- Executa 2to3 com múltiplas threads:
3333

34-
`2to3 --processes {{4}} --output-dir {{caminho/para/arquivos_python3}} --write --nobackups --no-diff {{caminho/para/arquivos_python2}}`
34+
`2to3 {{[-j|--processes]}} {{4}} {{[-o|--output-dir]}} {{caminho/para/arquivos_python3}} {{[-w|--write]}} {{[-n|--nobackups]}} --no-diffs {{caminho/para/arquivos_python2}}`

pages.zh/common/2to3.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,24 @@
1111

1212
- 将 Python 2 文件转化为 Python 3:
1313

14-
`2to3 --write {{路径/到/文件.py}}`
14+
`2to3 {{[-w|--write]}} {{路径/到/文件.py}}`
1515

1616
- 将 Python 2 语言特性转化为 Python 3:
1717

18-
`2to3 --write {{路径/到/文件.py}} --fix {{raw_input}} --fix {{print}}`
18+
`2to3 {{[-w|--write]}} {{路径/到/文件.py}} {{[-f|--fix]}} {{raw_input}} {{[-f|--fix]}} {{print}}`
1919

2020
- 除了某个语言特性外将所有其他的 Python 2 语言特性转化为 Python 3:
2121

22-
`2to3 --write {{路径/到/文件.py}} --nofix {{has_key}} --nofix {{isinstance}}`
22+
`2to3 {{[-w|--write]}} {{路径/到/文件.py}} {{[-x|--nofix]}} {{has_key}} {{[-x|--nofix]}} {{isinstance}}`
2323

2424
- 列出 Python 2 所有可转化为 Python 3 的语言特性:
2525

26-
`2to3 --list-fixes`
26+
`2to3 {{[-l|--list-fixes]}}`
2727

2828
- 将某一文件夹的所有 Python 2 文件转化为 Python 3:
2929

30-
`2to3 --output-dir {{路径/到/Python 3 目录}} --write-unchanged-files --nobackups {{路径/到/Python 2 目录}}`
30+
`2to3 {{[-o|--output-dir]}} {{路径/到/Python 3 目录}} {{[-W|--write-unchanged-files]}} {{[-n|--nobackups]}} {{路径/到/Python 2 目录}}`
3131

3232
- 使用多线程运行 2to3:
3333

34-
`2to3 --processes {{4}} --output-dir {{路径/到/Python 3 目录}} --write --nobackups --no-diff {{路径/到/Python 2 目录}}`
34+
`2to3 {{[-j|--processes]}} {{4}} {{[-o|--output-dir]}} {{路径/到/Python 3 目录}} {{[-w|--write]}} {{[-n|--nobackups]}} --no-diffs {{路径/到/Python 2 目录}}`

0 commit comments

Comments
 (0)