-
-
Notifications
You must be signed in to change notification settings - Fork 53
Expand file tree
/
Copy pathargparse.po
More file actions
4071 lines (3624 loc) · 165 KB
/
argparse.po
File metadata and controls
4071 lines (3624 loc) · 165 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2001-2017, Python Software Foundation
# This file is distributed under the same license as the Python package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2017.
#
msgid ""
msgstr ""
"Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-10-11 20:40+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Dong-gweon Oh <flowdas@gmail.com>\n"
"Language-Team: Korean (https://python.flowdas.com)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.17.0\n"
#: ../../library/argparse.rst:2
#, fuzzy
msgid ""
":mod:`!argparse` --- Parser for command-line options, arguments and "
"subcommands"
msgstr ":mod:`argparse` --- 명령행 옵션, 인자와 부속 명령을 위한 파서"
#: ../../library/argparse.rst:12
msgid "**Source code:** :source:`Lib/argparse.py`"
msgstr "**소스 코드:** :source:`Lib/argparse.py`"
#: ../../library/argparse.rst:16
msgid ""
"While :mod:`argparse` is the default recommended standard library module "
"for implementing basic command line applications, authors with more "
"exacting requirements for exactly how their command line applications "
"behave may find it doesn't provide the necessary level of control. Refer "
"to :ref:`choosing-an-argument-parser` for alternatives to consider when "
"``argparse`` doesn't support behaviors that the application requires "
"(such as entirely disabling support for interspersed options and "
"positional arguments, or accepting option parameter values that start "
"with ``-`` even when they correspond to another defined option)."
msgstr ""
#: ../../library/argparse.rst:-1
msgid "Tutorial"
msgstr "자습서"
#: ../../library/argparse.rst:30
msgid ""
"This page contains the API reference information. For a more gentle "
"introduction to Python command-line parsing, have a look at the "
":ref:`argparse tutorial <argparse-tutorial>`."
msgstr ""
"이 페이지는 API 레퍼런스 정보를 담고 있습니다. 파이썬 명령행 파싱에 대한 더 친절한 소개를 원하시면, "
":ref:`argparse 자습서 <argparse-tutorial>` 를 보십시오."
#: ../../library/argparse.rst:34
#, fuzzy
msgid ""
"The :mod:`!argparse` module makes it easy to write user-friendly command-"
"line interfaces. The program defines what arguments it requires, and "
":mod:`!argparse` will figure out how to parse those out of "
":data:`sys.argv`. The :mod:`!argparse` module also automatically "
"generates help and usage messages. The module will also issue errors "
"when users give the program invalid arguments."
msgstr ""
":mod:`argparse` 모듈은 사용자 친화적인 명령행 인터페이스를 쉽게 작성하도록 합니다. 프로그램이 필요한 인자를 정의하면,"
" :mod:`argparse` 는 :data:`sys.argv` 를 어떻게 파싱할지 파악합니다. 또한 :mod:`argparse` "
"모듈은 도움말과 사용법 메시지를 자동 생성하고, 사용자가 프로그램에 잘못된 인자를 줄 때 에러를 발생시킵니다."
#: ../../library/argparse.rst:40
msgid ""
"The :mod:`!argparse` module's support for command-line interfaces is "
"built around an instance of :class:`argparse.ArgumentParser`. It is a "
"container for argument specifications and has options that apply to the "
"parser as whole::"
msgstr ""
#: ../../library/argparse.rst:44
msgid ""
"parser = argparse.ArgumentParser(\n"
" prog='ProgramName',\n"
" description='What the program does',\n"
" epilog='Text at the bottom of help')"
msgstr ""
#: ../../library/argparse.rst:49
msgid ""
"The :meth:`ArgumentParser.add_argument` method attaches individual "
"argument specifications to the parser. It supports positional arguments,"
" options that accept values, and on/off flags::"
msgstr ""
#: ../../library/argparse.rst:53
msgid ""
"parser.add_argument('filename') # positional argument\n"
"parser.add_argument('-c', '--count') # option that takes a value\n"
"parser.add_argument('-v', '--verbose',\n"
" action='store_true') # on/off flag"
msgstr ""
#: ../../library/argparse.rst:58
msgid ""
"The :meth:`ArgumentParser.parse_args` method runs the parser and places "
"the extracted data in a :class:`argparse.Namespace` object::"
msgstr ""
#: ../../library/argparse.rst:61
msgid ""
"args = parser.parse_args()\n"
"print(args.filename, args.count, args.verbose)"
msgstr ""
#: ../../library/argparse.rst:65
msgid ""
"If you're looking for a guide about how to upgrade :mod:`optparse` code "
"to :mod:`!argparse`, see :ref:`Upgrading Optparse Code <upgrading-"
"optparse-code>`."
msgstr ""
#: ../../library/argparse.rst:69
msgid "ArgumentParser objects"
msgstr "ArgumentParser 객체"
#: ../../library/argparse.rst:79
msgid ""
"Create a new :class:`ArgumentParser` object. All parameters should be "
"passed as keyword arguments. Each parameter has its own more detailed "
"description below, but in short they are:"
msgstr ""
"새로운 :class:`ArgumentParser` 객체를 만듭니다. 모든 매개 변수는 키워드 인자로 전달되어야 합니다. 매개 "
"변수마다 아래에서 더 자세히 설명되지만, 요약하면 다음과 같습니다:"
#: ../../library/argparse.rst:83
#, fuzzy
msgid ""
"prog_ - The name of the program (default: generated from the ``__main__``"
" module attributes and ``sys.argv[0]``)"
msgstr "prog_ - 프로그램의 이름 (기본값: ``sys.argv[0]``)"
#: ../../library/argparse.rst:86
msgid ""
"usage_ - The string describing the program usage (default: generated from"
" arguments added to parser)"
msgstr "usage_ - 프로그램 사용법을 설명하는 문자열 (기본값: 파서에 추가된 인자로부터 만들어지는 값)"
#: ../../library/argparse.rst:89
#, fuzzy
msgid ""
"description_ - Text to display before the argument help (by default, no "
"text)"
msgstr "description_ - 인자 도움말 전에 표시할 텍스트 (기본값: none)"
#: ../../library/argparse.rst:92
#, fuzzy
msgid "epilog_ - Text to display after the argument help (by default, no text)"
msgstr "epilog_ - 인자 도움말 후에 표시할 텍스트 (기본값: none)"
#: ../../library/argparse.rst:94
msgid ""
"parents_ - A list of :class:`ArgumentParser` objects whose arguments "
"should also be included"
msgstr "parents_ - :class:`ArgumentParser` 객체들의 리스트이고, 이 들의 인자들도 포함된다"
#: ../../library/argparse.rst:97
msgid "formatter_class_ - A class for customizing the help output"
msgstr "formatter_class_ - 도움말 출력을 사용자 정의하기 위한 클래스"
#: ../../library/argparse.rst:99
msgid ""
"prefix_chars_ - The set of characters that prefix optional arguments "
"(default: '-')"
msgstr "prefix_chars_ - 선택 인자 앞에 붙는 문자 집합 (기본값: '-')."
#: ../../library/argparse.rst:102
msgid ""
"fromfile_prefix_chars_ - The set of characters that prefix files from "
"which additional arguments should be read (default: ``None``)"
msgstr "fromfile_prefix_chars_ - 추가 인자를 읽어야 하는 파일 앞에 붙는 문자 집합 (기본값: ``None``)."
#: ../../library/argparse.rst:105
msgid ""
"argument_default_ - The global default value for arguments (default: "
"``None``)"
msgstr "argument_default_ - 인자의 전역 기본값 (기본값: ``None``)"
#: ../../library/argparse.rst:108
msgid ""
"conflict_handler_ - The strategy for resolving conflicting optionals "
"(usually unnecessary)"
msgstr "conflict_handler_ - 충돌하는 선택 사항을 해결하기 위한 전략 (일반적으로 불필요함)"
#: ../../library/argparse.rst:111
msgid "add_help_ - Add a ``-h/--help`` option to the parser (default: ``True``)"
msgstr "add_help_ - 파서에 ``-h/--help`` 옵션을 추가합니다 (기본값: ``True``)"
#: ../../library/argparse.rst:113
#, fuzzy
msgid ""
"allow_abbrev_ - Allows long options to be abbreviated if the abbreviation"
" is unambiguous (default: ``True``)"
msgstr "allow_abbrev_ - 약어가 모호하지 않으면 긴 옵션을 축약할 수 있도록 합니다. (기본값: ``True``)"
#: ../../library/argparse.rst:116
#, fuzzy
msgid ""
"exit_on_error_ - Determines whether or not :class:`!ArgumentParser` exits"
" with error info when an error occurs. (default: ``True``)"
msgstr ""
"exit_on_error_ - 에러가 발생했을 때 ArgumentParser가 에러 정보로 종료되는지를 결정합니다. (기본값: "
"``True``)"
#: ../../library/argparse.rst:119
msgid ""
"suggest_on_error_ - Enables suggestions for mistyped argument choices and"
" subparser names (default: ``False``)"
msgstr ""
#: ../../library/argparse.rst:122
msgid "color_ - Allow color output (default: ``True``)"
msgstr ""
#: ../../library/argparse.rst:124
msgid "*allow_abbrev* parameter was added."
msgstr "*allow_abbrev* 매개 변수가 추가되었습니다."
#: ../../library/argparse.rst:127
msgid ""
"In previous versions, *allow_abbrev* also disabled grouping of short "
"flags such as ``-vv`` to mean ``-v -v``."
msgstr ""
"이전 버전에서는, *allow_abbrev*\\는 ``-vv``\\가 ``-v -v``\\를 뜻하는 것과 같은 짧은 플래그의 "
"그룹화도 비활성화했습니다."
#: ../../library/argparse.rst:131
msgid "*exit_on_error* parameter was added."
msgstr "*exit_on_error* 매개 변수가 추가되었습니다."
#: ../../library/argparse.rst:134
#, fuzzy
msgid "*suggest_on_error* and *color* parameters were added."
msgstr "*exit_on_error* 매개 변수가 추가되었습니다."
#: ../../library/argparse.rst:137 ../../library/argparse.rst:684
msgid "The following sections describe how each of these are used."
msgstr "다음 절에서는 이들 각각의 사용 방법에 관해 설명합니다."
#: ../../library/argparse.rst:143
msgid "prog"
msgstr "prog"
#: ../../library/argparse.rst:146
#, fuzzy
msgid ""
"By default, :class:`ArgumentParser` calculates the name of the program to"
" display in help messages depending on the way the Python interpreter was"
" run:"
msgstr "기본적으로, :class:`ArgumentParser` 는 포함 된 인자로부터 사용법 메시지를 계산합니다::"
#: ../../library/argparse.rst:149
msgid ""
"The :func:`base name <os.path.basename>` of ``sys.argv[0]`` if a file was"
" passed as argument."
msgstr ""
#: ../../library/argparse.rst:151
msgid ""
"The Python interpreter name followed by ``sys.argv[0]`` if a directory or"
" a zipfile was passed as argument."
msgstr ""
#: ../../library/argparse.rst:153
msgid ""
"The Python interpreter name followed by ``-m`` followed by the module or "
"package name if the :option:`-m` option was used."
msgstr ""
#: ../../library/argparse.rst:156
msgid ""
"This default is almost always desirable because it will make the help "
"messages match the string that was used to invoke the program on the "
"command line. However, to change this default behavior, another value can"
" be supplied using the ``prog=`` argument to :class:`ArgumentParser`::"
msgstr ""
#: ../../library/argparse.rst:161
msgid ""
">>> parser = argparse.ArgumentParser(prog='myprogram')\n"
">>> parser.print_help()\n"
"usage: myprogram [-h]\n"
"\n"
"options:\n"
" -h, --help show this help message and exit"
msgstr ""
#: ../../library/argparse.rst:168
#, fuzzy, python-format
msgid ""
"Note that the program name, whether determined from ``sys.argv[0]``, from"
" the ``__main__`` module attributes or from the ``prog=`` argument, is "
"available to help messages using the ``%(prog)s`` format specifier."
msgstr ""
"프로그램 이름은 ``%(prog)s`` 포맷 지정자를 사용해서 도움말에 쓸 수 있습니다. ``sys.argv[0]`` 나 "
"``prog=`` 인자 중 어떤 것으로부터 결정되든 상관없습니다."
#: ../../library/argparse.rst:175
#, python-format
msgid ""
">>> parser = argparse.ArgumentParser(prog='myprogram')\n"
">>> parser.add_argument('--foo', help='foo of the %(prog)s program')\n"
">>> parser.print_help()\n"
"usage: myprogram [-h] [--foo FOO]\n"
"\n"
"options:\n"
" -h, --help show this help message and exit\n"
" --foo FOO foo of the myprogram program"
msgstr ""
#: ../../library/argparse.rst:184
msgid ""
"The default ``prog`` value now reflects how ``__main__`` was actually "
"executed, rather than always being ``os.path.basename(sys.argv[0])``."
msgstr ""
#: ../../library/argparse.rst:189
msgid "usage"
msgstr "usage"
#: ../../library/argparse.rst:191
#, fuzzy
msgid ""
"By default, :class:`ArgumentParser` calculates the usage message from the"
" arguments it contains. The default message can be overridden with the "
"``usage=`` keyword argument::"
msgstr "기본적으로, :class:`ArgumentParser` 는 포함 된 인자로부터 사용법 메시지를 계산합니다::"
#: ../../library/argparse.rst:195
#, python-format
msgid ""
">>> parser = argparse.ArgumentParser(prog='PROG', usage='%(prog)s "
"[options]')\n"
">>> parser.add_argument('--foo', nargs='?', help='foo help')\n"
">>> parser.add_argument('bar', nargs='+', help='bar help')\n"
">>> parser.print_help()\n"
"usage: PROG [options]\n"
"\n"
"positional arguments:\n"
" bar bar help\n"
"\n"
"options:\n"
" -h, --help show this help message and exit\n"
" --foo [FOO] foo help"
msgstr ""
#: ../../library/argparse.rst:208
#, python-format
msgid ""
"The ``%(prog)s`` format specifier is available to fill in the program "
"name in your usage messages."
msgstr "``%(prog)s`` 포맷 지정자는 사용법 메시지에서 프로그램 이름을 채울 때 사용할 수 있습니다."
#: ../../library/argparse.rst:211
msgid ""
"When a custom usage message is specified for the main parser, you may "
"also want to consider passing the ``prog`` argument to "
":meth:`~ArgumentParser.add_subparsers` or the ``prog`` and the ``usage`` "
"arguments to :meth:`~_SubParsersAction.add_parser`, to ensure consistent "
"command prefixes and usage information across subparsers."
msgstr ""
#: ../../library/argparse.rst:221
msgid "description"
msgstr "description"
#: ../../library/argparse.rst:223
#, fuzzy
msgid ""
"Most calls to the :class:`ArgumentParser` constructor will use the "
"``description=`` keyword argument. This argument gives a brief "
"description of what the program does and how it works. In help messages,"
" the description is displayed between the command-line usage string and "
"the help messages for the various arguments."
msgstr ""
":class:`ArgumentParser` 생성자에 대한 대부분의 호출은 ``description=`` 키워드 인자를 사용할 "
"것입니다. 이 인자는 프로그램의 기능과 작동 방식에 대한 간략한 설명을 제공합니다. 도움말 메시지에서, 설명은 명령행 사용 문자열과"
" 다양한 인자에 대한 도움말 메시지 사이에 표시됩니다::"
#: ../../library/argparse.rst:229
msgid ""
"By default, the description will be line-wrapped so that it fits within "
"the given space. To change this behavior, see the formatter_class_ "
"argument."
msgstr "기본적으로, 설명은 주어진 공간에 맞도록 줄 바꿈 됩니다. 이 동작을 변경하려면 formatter_class_ 인자를 참조하십시오."
#: ../../library/argparse.rst:234
msgid "epilog"
msgstr "epilog"
#: ../../library/argparse.rst:236
msgid ""
"Some programs like to display additional description of the program after"
" the description of the arguments. Such text can be specified using the "
"``epilog=`` argument to :class:`ArgumentParser`::"
msgstr ""
"일부 프로그램은 인자에 대한 설명 뒤에 프로그램에 대한 추가 설명을 표시하려고 합니다. 이러한 텍스트는 ``epilog=`` 에 "
"대한 인자를 :class:`ArgumentParser` 에 사용하여 지정할 수 있습니다::"
#: ../../library/argparse.rst:240
msgid ""
">>> parser = argparse.ArgumentParser(\n"
"... description='A foo that bars',\n"
"... epilog=\"And that's how you'd foo a bar\")\n"
">>> parser.print_help()\n"
"usage: argparse.py [-h]\n"
"\n"
"A foo that bars\n"
"\n"
"options:\n"
" -h, --help show this help message and exit\n"
"\n"
"And that's how you'd foo a bar"
msgstr ""
#: ../../library/argparse.rst:253
msgid ""
"As with the description_ argument, the ``epilog=`` text is by default "
"line-wrapped, but this behavior can be adjusted with the formatter_class_"
" argument to :class:`ArgumentParser`."
msgstr ""
"description_ 인자와 마찬가지로, ``epilog=`` 텍스트가 기본적으로 줄 바꿈 됩니다만, 이 동작은 "
"formatter_class_ 인자를 :class:`ArgumentParser` 에 제공해서 조정할 수 있습니다."
#: ../../library/argparse.rst:259
msgid "parents"
msgstr "parents"
#: ../../library/argparse.rst:261
msgid ""
"Sometimes, several parsers share a common set of arguments. Rather than "
"repeating the definitions of these arguments, a single parser with all "
"the shared arguments and passed to ``parents=`` argument to "
":class:`ArgumentParser` can be used. The ``parents=`` argument takes a "
"list of :class:`ArgumentParser` objects, collects all the positional and "
"optional actions from them, and adds these actions to the "
":class:`ArgumentParser` object being constructed::"
msgstr ""
"때로는 여러 파서가 공통 인자 집합을 공유하는 경우가 있습니다. 이러한 인자의 정의를 반복하는 대신, 모든 공유 인자를 갖는 파서를"
" :class:`ArgumentParser` 에 ``parents=`` 인자로 전달할 수 있습니다. ``parents=`` 인자는 "
":class:`ArgumentParser` 객체의 리스트를 취하여, 그것들로부터 모든 위치와 선택 액션을 수집해서 새로 만들어지는 "
":class:`ArgumentParser` 객체에 추가합니다::"
#: ../../library/argparse.rst:268
msgid ""
">>> parent_parser = argparse.ArgumentParser(add_help=False)\n"
">>> parent_parser.add_argument('--parent', type=int)\n"
"\n"
">>> foo_parser = argparse.ArgumentParser(parents=[parent_parser])\n"
">>> foo_parser.add_argument('foo')\n"
">>> foo_parser.parse_args(['--parent', '2', 'XXX'])\n"
"Namespace(foo='XXX', parent=2)\n"
"\n"
">>> bar_parser = argparse.ArgumentParser(parents=[parent_parser])\n"
">>> bar_parser.add_argument('--bar')\n"
">>> bar_parser.parse_args(['--bar', 'YYY'])\n"
"Namespace(bar='YYY', parent=None)"
msgstr ""
#: ../../library/argparse.rst:281
msgid ""
"Note that most parent parsers will specify ``add_help=False``. "
"Otherwise, the :class:`ArgumentParser` will see two ``-h/--help`` options"
" (one in the parent and one in the child) and raise an error."
msgstr ""
"대부분의 부모 파서는 ``add_help=False`` 를 지정합니다. 그렇지 않으면, :class:`ArgumentParser` "
"는 (하나는 부모에, 하나는 자식에 있는) 두 개의 ``-h/--help`` 옵션을 보게 될 것이고, 에러를 발생시킵니다."
#: ../../library/argparse.rst:286
msgid ""
"You must fully initialize the parsers before passing them via "
"``parents=``. If you change the parent parsers after the child parser, "
"those changes will not be reflected in the child."
msgstr ""
"``parents=`` 를 통해 전달하기 전에 파서를 완전히 초기화해야 합니다. 자식 파서 다음에 부모 파서를 변경하면 자식에 "
"반영되지 않습니다."
#: ../../library/argparse.rst:294
msgid "formatter_class"
msgstr "formatter_class"
#: ../../library/argparse.rst:296
msgid ""
":class:`ArgumentParser` objects allow the help formatting to be "
"customized by specifying an alternate formatting class. Currently, there"
" are four such classes:"
msgstr ""
":class:`ArgumentParser` 객체는 대체 포매팅 클래스를 지정함으로써 도움말 포매팅을 사용자 정의 할 수 있도록 "
"합니다. 현재 네 가지 클래스가 있습니다:"
#: ../../library/argparse.rst:305
msgid ""
":class:`RawDescriptionHelpFormatter` and :class:`RawTextHelpFormatter` "
"give more control over how textual descriptions are displayed. By "
"default, :class:`ArgumentParser` objects line-wrap the description_ and "
"epilog_ texts in command-line help messages::"
msgstr ""
":class:`RawDescriptionHelpFormatter` 와 :class:`RawTextHelpFormatter` 는 "
"텍스트 설명이 표시되는 방법을 더 제어할 수 있도록 합니다. 기본적으로, :class:`ArgumentParser` 객체는 명령행 "
"도움말 메시지에서 description_ 및 epilog_ 텍스트를 줄 바꿈 합니다.::"
#: ../../library/argparse.rst:310
msgid ""
">>> parser = argparse.ArgumentParser(\n"
"... prog='PROG',\n"
"... description='''this description\n"
"... was indented weird\n"
"... but that is okay''',\n"
"... epilog='''\n"
"... likewise for this epilog whose whitespace will\n"
"... be cleaned up and whose words will be wrapped\n"
"... across a couple lines''')\n"
">>> parser.print_help()\n"
"usage: PROG [-h]\n"
"\n"
"this description was indented weird but that is okay\n"
"\n"
"options:\n"
" -h, --help show this help message and exit\n"
"\n"
"likewise for this epilog whose whitespace will be cleaned up and whose "
"words\n"
"will be wrapped across a couple lines"
msgstr ""
#: ../../library/argparse.rst:330
msgid ""
"Passing :class:`RawDescriptionHelpFormatter` as ``formatter_class=`` "
"indicates that description_ and epilog_ are already correctly formatted "
"and should not be line-wrapped::"
msgstr ""
":class:`RawDescriptionHelpFormatter` 를 ``formatter_class=`` 로 전달하는 것은 "
"description_ 과 epilog_ 가 이미 올바르게 포맷되어 있어서 줄 바꿈 되어서는 안 된다는 것을 가리킵니다::"
#: ../../library/argparse.rst:334
msgid ""
">>> parser = argparse.ArgumentParser(\n"
"... prog='PROG',\n"
"... formatter_class=argparse.RawDescriptionHelpFormatter,\n"
"... description=textwrap.dedent('''\\\n"
"... Please do not mess up this text!\n"
"... --------------------------------\n"
"... I have indented it\n"
"... exactly the way\n"
"... I want it\n"
"... '''))\n"
">>> parser.print_help()\n"
"usage: PROG [-h]\n"
"\n"
"Please do not mess up this text!\n"
"--------------------------------\n"
" I have indented it\n"
" exactly the way\n"
" I want it\n"
"\n"
"options:\n"
" -h, --help show this help message and exit"
msgstr ""
#: ../../library/argparse.rst:356
#, fuzzy
msgid ""
":class:`RawTextHelpFormatter` maintains whitespace for all sorts of help "
"text, including argument descriptions. However, multiple newlines are "
"replaced with one. If you wish to preserve multiple blank lines, add "
"spaces between the newlines."
msgstr ""
":class:`RawTextHelpFormatter` 는 인자 설명을 포함하여 모든 종류의 도움말 텍스트에 있는 공백을 유지합니다."
" 그러나 여러 개의 줄 넘김은 하나로 치환됩니다. 여러 개의 빈 줄을 유지하려면, 줄 바꿈 사이에 스페이스를 추가하십시오."
#: ../../library/argparse.rst:361
msgid ""
":class:`ArgumentDefaultsHelpFormatter` automatically adds information "
"about default values to each of the argument help messages::"
msgstr ""
":class:`ArgumentDefaultsHelpFormatter` 는 기본값에 대한 정보를 각각의 인자 도움말 메시지에 자동으로"
" 추가합니다::"
#: ../../library/argparse.rst:364
msgid ""
">>> parser = argparse.ArgumentParser(\n"
"... prog='PROG',\n"
"... formatter_class=argparse.ArgumentDefaultsHelpFormatter)\n"
">>> parser.add_argument('--foo', type=int, default=42, help='FOO!')\n"
">>> parser.add_argument('bar', nargs='*', default=[1, 2, 3], help='BAR!')"
"\n"
">>> parser.print_help()\n"
"usage: PROG [-h] [--foo FOO] [bar ...]\n"
"\n"
"positional arguments:\n"
" bar BAR! (default: [1, 2, 3])\n"
"\n"
"options:\n"
" -h, --help show this help message and exit\n"
" --foo FOO FOO! (default: 42)"
msgstr ""
#: ../../library/argparse.rst:379
msgid ""
":class:`MetavarTypeHelpFormatter` uses the name of the type_ argument for"
" each argument as the display name for its values (rather than using the "
"dest_ as the regular formatter does)::"
msgstr ""
":class:`MetavarTypeHelpFormatter` 는 각 인자 값의 표시 이름으로 (일반 포매터처럼 dest_ 를 "
"사용하는 대신에) type_ 인자의 이름을 사용합니다::"
#: ../../library/argparse.rst:383
msgid ""
">>> parser = argparse.ArgumentParser(\n"
"... prog='PROG',\n"
"... formatter_class=argparse.MetavarTypeHelpFormatter)\n"
">>> parser.add_argument('--foo', type=int)\n"
">>> parser.add_argument('bar', type=float)\n"
">>> parser.print_help()\n"
"usage: PROG [-h] [--foo int] float\n"
"\n"
"positional arguments:\n"
" float\n"
"\n"
"options:\n"
" -h, --help show this help message and exit\n"
" --foo int"
msgstr ""
#: ../../library/argparse.rst:400
msgid "prefix_chars"
msgstr "prefix_chars"
#: ../../library/argparse.rst:402
#, fuzzy
msgid ""
"Most command-line options will use ``-`` as the prefix, e.g. "
"``-f/--foo``. Parsers that need to support different or additional prefix"
" characters, e.g. for options like ``+f`` or ``/foo``, may specify them "
"using the ``prefix_chars=`` argument to the :class:`ArgumentParser` "
"constructor::"
msgstr ""
"대부분의 명령행 옵션은 ``-f/--foo`` 처럼 ``-`` 를 접두어로 사용합니다. ``+f`` 나 ``/foo`` 같은 옵션과"
" 같이, 다른 접두어 문자를 지원해야 하는 파서는 ArgumentParser 생성자에 ``prefix_chars=`` 인자를 "
"사용하여 지정할 수 있습니다::"
#: ../../library/argparse.rst:408
msgid ""
">>> parser = argparse.ArgumentParser(prog='PROG', prefix_chars='-+')\n"
">>> parser.add_argument('+f')\n"
">>> parser.add_argument('++bar')\n"
">>> parser.parse_args('+f X ++bar Y'.split())\n"
"Namespace(bar='Y', f='X')"
msgstr ""
#: ../../library/argparse.rst:414
msgid ""
"The ``prefix_chars=`` argument defaults to ``'-'``. Supplying a set of "
"characters that does not include ``-`` will cause ``-f/--foo`` options to"
" be disallowed."
msgstr ""
"``prefix_chars=`` 인자의 기본값은 ``'-'`` 입니다. ``-`` 를 포함하지 않는 문자 집합을 제공하면 "
"``-f/--foo`` 옵션이 허용되지 않게 됩니다."
#: ../../library/argparse.rst:420
msgid "fromfile_prefix_chars"
msgstr "fromfile_prefix_chars"
#: ../../library/argparse.rst:422
#, fuzzy
msgid ""
"Sometimes, when dealing with a particularly long argument list, it may "
"make sense to keep the list of arguments in a file rather than typing it "
"out at the command line. If the ``fromfile_prefix_chars=`` argument is "
"given to the :class:`ArgumentParser` constructor, then arguments that "
"start with any of the specified characters will be treated as files, and "
"will be replaced by the arguments they contain. For example::"
msgstr ""
"때로는, 예를 들어 특히 긴 인자 목록을 다룰 때, 인자 목록을 명령행에 입력하는 대신 파일에 보관하는 것이 좋습니다. "
"``fromfile_prefix_chars=`` 인자가 :class:`ArgumentParser` 생성자에 주어지면, 지정된 문자로"
" 시작하는 인자는 파일로 간주하고 파일에 포함된 인자로 대체됩니다. 예를 들면::"
#: ../../library/argparse.rst:429
msgid ""
">>> with open('args.txt', 'w', encoding=sys.getfilesystemencoding()) as "
"fp:\n"
"... fp.write('-f\\nbar')\n"
"...\n"
">>> parser = argparse.ArgumentParser(fromfile_prefix_chars='@')\n"
">>> parser.add_argument('-f')\n"
">>> parser.parse_args(['-f', 'foo', '@args.txt'])\n"
"Namespace(f='bar')"
msgstr ""
#: ../../library/argparse.rst:437
#, fuzzy
msgid ""
"Arguments read from a file must be one per line by default (but see also "
":meth:`~ArgumentParser.convert_arg_line_to_args`) and are treated as if "
"they were in the same place as the original file referencing argument on "
"the command line. So in the example above, the expression ``['-f', "
"'foo', '@args.txt']`` is considered equivalent to the expression ``['-f',"
" 'foo', '-f', 'bar']``."
msgstr ""
"파일에서 읽은 인자는 기본적으로 한 줄에 하나씩 있어야 하고 (하지만 "
":meth:`~ArgumentParser.convert_arg_line_to_args` 도 참조하십시오), 명령행에서 원래 파일을 "
"참조하는 인자와 같은 위치에 있는 것처럼 처리됩니다. 위의 예에서 표현식 ``['-f', 'foo', '@args.txt']`` 는"
" ``['-f', 'foo', '-f', 'bar']`` 와 동등하게 취급됩니다."
#: ../../library/argparse.rst:445
msgid ""
"Empty lines are treated as empty strings (``''``), which are allowed as "
"values but not as arguments. Empty lines that are read as arguments will "
"result in an \"unrecognized arguments\" error."
msgstr ""
#: ../../library/argparse.rst:449
msgid ""
":class:`ArgumentParser` uses :term:`filesystem encoding and error "
"handler` to read the file containing arguments."
msgstr ""
#: ../../library/argparse.rst:452
msgid ""
"The ``fromfile_prefix_chars=`` argument defaults to ``None``, meaning "
"that arguments will never be treated as file references."
msgstr ""
"``fromfile_prefix_chars=`` 인자의 기본값은 ``None`` 입니다. 이것은 인자가 절대로 파일 참조로 취급되지"
" 않는다는 것을 의미합니다."
#: ../../library/argparse.rst:455
msgid ""
":class:`ArgumentParser` changed encoding and errors to read arguments "
"files from default (e.g. :func:`locale.getpreferredencoding(False) "
"<locale.getpreferredencoding>` and ``\"strict\"``) to the "
":term:`filesystem encoding and error handler`. Arguments file should be "
"encoded in UTF-8 instead of ANSI Codepage on Windows."
msgstr ""
#: ../../library/argparse.rst:463
msgid "argument_default"
msgstr "argument_default"
#: ../../library/argparse.rst:465
msgid ""
"Generally, argument defaults are specified either by passing a default to"
" :meth:`~ArgumentParser.add_argument` or by calling the "
":meth:`~ArgumentParser.set_defaults` methods with a specific set of name-"
"value pairs. Sometimes however, it may be useful to specify a single "
"parser-wide default for arguments. This can be accomplished by passing "
"the ``argument_default=`` keyword argument to :class:`ArgumentParser`. "
"For example, to globally suppress attribute creation on "
":meth:`~ArgumentParser.parse_args` calls, we supply "
"``argument_default=SUPPRESS``::"
msgstr ""
"일반적으로 인자의 기본값은 :meth:`~ArgumentParser.add_argument` 에 기본값을 전달하거나 특정 이름-값 "
"쌍 집합을 사용하여 :meth:`~ArgumentParser.set_defaults` 메서드를 호출하여 지정됩니다. 그러나 때로는,"
" 파서 전체에 적용되는 단일 기본값을 지정하는 것이 유용 할 수 있습니다. 이것은 ``argument_default=`` 키워드 "
"인자를 :class:`ArgumentParser` 에 전달함으로써 이루어질 수 있습니다. 예를 들어, "
":meth:`~ArgumentParser.parse_args` 호출에서 어트리뷰트 생성을 전역적으로 억제하려면, "
"``argument_default=SUPPRESS`` 를 제공합니다::"
#: ../../library/argparse.rst:474
msgid ""
">>> parser = argparse.ArgumentParser(argument_default=argparse.SUPPRESS)\n"
">>> parser.add_argument('--foo')\n"
">>> parser.add_argument('bar', nargs='?')\n"
">>> parser.parse_args(['--foo', '1', 'BAR'])\n"
"Namespace(bar='BAR', foo='1')\n"
">>> parser.parse_args([])\n"
"Namespace()"
msgstr ""
#: ../../library/argparse.rst:485
msgid "allow_abbrev"
msgstr "allow_abbrev"
#: ../../library/argparse.rst:487
msgid ""
"Normally, when you pass an argument list to the "
":meth:`~ArgumentParser.parse_args` method of an :class:`ArgumentParser`, "
"it :ref:`recognizes abbreviations <prefix-matching>` of long options."
msgstr ""
"일반적으로 :class:`ArgumentParser` 의 :meth:`~ArgumentParser.parse_args` 메서드에 "
"인자 리스트를 건네주면 긴 옵션의 :ref:`약어를 인식합니다 <prefix-matching>`."
#: ../../library/argparse.rst:491
msgid "This feature can be disabled by setting ``allow_abbrev`` to ``False``::"
msgstr "``allow_abbrev`` 를 ``False`` 로 설정하면 이 기능을 비활성화 할 수 있습니다::"
#: ../../library/argparse.rst:493
msgid ""
">>> parser = argparse.ArgumentParser(prog='PROG', allow_abbrev=False)\n"
">>> parser.add_argument('--foobar', action='store_true')\n"
">>> parser.add_argument('--foonley', action='store_false')\n"
">>> parser.parse_args(['--foon'])\n"
"usage: PROG [-h] [--foobar] [--foonley]\n"
"PROG: error: unrecognized arguments: --foon"
msgstr ""
#: ../../library/argparse.rst:504
msgid "conflict_handler"
msgstr "conflict_handler"
#: ../../library/argparse.rst:506
msgid ""
":class:`ArgumentParser` objects do not allow two actions with the same "
"option string. By default, :class:`ArgumentParser` objects raise an "
"exception if an attempt is made to create an argument with an option "
"string that is already in use::"
msgstr ""
":class:`ArgumentParser` 객체는 같은 옵션 문자열을 가진 두 개의 액션을 허용하지 않습니다. 기본적으로 "
":class:`ArgumentParser` 객체는 이미 사용 중인 옵션 문자열로 인자를 만들려고 시도하면 예외를 발생시킵니다 ::"
#: ../../library/argparse.rst:511
msgid ""
">>> parser = argparse.ArgumentParser(prog='PROG')\n"
">>> parser.add_argument('-f', '--foo', help='old foo help')\n"
">>> parser.add_argument('--foo', help='new foo help')\n"
"Traceback (most recent call last):\n"
" ..\n"
"ArgumentError: argument --foo: conflicting option string(s): --foo"
msgstr ""
#: ../../library/argparse.rst:518
msgid ""
"Sometimes (e.g. when using parents_) it may be useful to simply override "
"any older arguments with the same option string. To get this behavior, "
"the value ``'resolve'`` can be supplied to the ``conflict_handler=`` "
"argument of :class:`ArgumentParser`::"
msgstr ""
"때로는 (예를 들어 parents_ 를 사용하는 경우) 같은 옵션 문자열을 갖는 예전의 인자들을 간단히 대체하는 것이 유용 할 수 "
"있습니다. 이 동작을 얻으려면, :class:`ArgumentParser` 의 ``conflict_handler=`` 인자에 "
"``'resolve'`` 값을 제공합니다::"
#: ../../library/argparse.rst:523
msgid ""
">>> parser = argparse.ArgumentParser(prog='PROG', "
"conflict_handler='resolve')\n"
">>> parser.add_argument('-f', '--foo', help='old foo help')\n"
">>> parser.add_argument('--foo', help='new foo help')\n"
">>> parser.print_help()\n"
"usage: PROG [-h] [-f FOO] [--foo FOO]\n"
"\n"
"options:\n"
" -h, --help show this help message and exit\n"
" -f FOO old foo help\n"
" --foo FOO new foo help"
msgstr ""
#: ../../library/argparse.rst:534
msgid ""
"Note that :class:`ArgumentParser` objects only remove an action if all of"
" its option strings are overridden. So, in the example above, the old "
"``-f/--foo`` action is retained as the ``-f`` action, because only the "
"``--foo`` option string was overridden."
msgstr ""
":class:`ArgumentParser` 객체는 모든 옵션 문자열이 재정의된 경우에만 액션을 제거합니다. 위의 예에서, 이전의 "
"``-f/--foo`` 액션은 ``--foo`` 옵션 문자열만 재정의되었기 때문에 ``-f`` 액션으로 유지됩니다."
#: ../../library/argparse.rst:541
msgid "add_help"
msgstr "add_help"
#: ../../library/argparse.rst:543
#, fuzzy
msgid ""
"By default, :class:`ArgumentParser` objects add an option which simply "
"displays the parser's help message. If ``-h`` or ``--help`` is supplied "
"at the command line, the :class:`!ArgumentParser` help will be printed."
msgstr ""
"기본적으로, ArgumentParser 객체는 파서의 도움말 메시지를 표시하는 옵션을 추가합니다. 예를 들어, 다음 코드를 포함하는"
" ``myprogram.py`` 파일을 생각해보십시오::"
#: ../../library/argparse.rst:547
msgid ""
"Occasionally, it may be useful to disable the addition of this help "
"option. This can be achieved by passing ``False`` as the ``add_help=`` "
"argument to :class:`ArgumentParser`::"
msgstr ""
"때에 따라, 이 도움말 옵션을 추가하지 않도록 설정하는 것이 유용 할 수 있습니다. ``add_help=`` 인자를 "
"``False`` 로 :class:`ArgumentParser` 에 전달하면 됩니다::"
#: ../../library/argparse.rst:551
msgid ""
">>> parser = argparse.ArgumentParser(prog='PROG', add_help=False)\n"
">>> parser.add_argument('--foo', help='foo help')\n"
">>> parser.print_help()\n"
"usage: PROG [--foo FOO]\n"
"\n"
"options:\n"
" --foo FOO foo help"
msgstr ""
#: ../../library/argparse.rst:559
msgid ""
"The help option is typically ``-h/--help``. The exception to this is if "
"the ``prefix_chars=`` is specified and does not include ``-``, in which "
"case ``-h`` and ``--help`` are not valid options. In this case, the "
"first character in ``prefix_chars`` is used to prefix the help options::"
msgstr ""
"도움말 옵션은 일반적으로 ``-h/--help`` 입니다. 예외는 ``prefix_chars=`` 가 지정되고 ``-`` 을 "
"포함하지 않는 경우입니다. 이 경우 ``-h`` 와 ``--help`` 는 유효한 옵션이 아닙니다. 이 경우, "
"``prefix_chars`` 의 첫 번째 문자가 도움말 옵션 접두어로 사용됩니다::"
#: ../../library/argparse.rst:565
msgid ""
">>> parser = argparse.ArgumentParser(prog='PROG', prefix_chars='+/')\n"
">>> parser.print_help()\n"
"usage: PROG [+h]\n"
"\n"
"options:\n"
" +h, ++help show this help message and exit"
msgstr ""
#: ../../library/argparse.rst:574
msgid "exit_on_error"
msgstr "exit_on_error"
#: ../../library/argparse.rst:576
#, fuzzy
msgid ""
"Normally, when you pass an invalid argument list to the "
":meth:`~ArgumentParser.parse_args` method of an :class:`ArgumentParser`, "
"it will print a *message* to :data:`sys.stderr` and exit with a status "
"code of 2."
msgstr ""
"일반적으로, :class:`ArgumentParser` 의 :meth:`~ArgumentParser.parse_args` 메서드에 "
"잘못된 인자 리스트를 건네주면, 에러 정보와 함께 종료합니다."
#: ../../library/argparse.rst:580
#, fuzzy
msgid ""
"If the user would like to catch errors manually, the feature can be "
"enabled by setting ``exit_on_error`` to ``False``::"
msgstr ""
"사용자가 수동으로 에러를 잡으려면, ``exit_on_error``\\를 ``False``\\로 설정하여 기능을 활성화 할 수 "
"있습니다::"
#: ../../library/argparse.rst:583
msgid ""
">>> parser = argparse.ArgumentParser(exit_on_error=False)\n"
">>> parser.add_argument('--integers', type=int)\n"
"_StoreAction(option_strings=['--integers'], dest='integers', nargs=None, "
"const=None, default=None, type=<class 'int'>, choices=None, help=None, "
"metavar=None)\n"
">>> try:\n"
"... parser.parse_args('--integers a'.split())\n"
"... except argparse.ArgumentError:\n"
"... print('Catching an argumentError')\n"
"...\n"
"Catching an argumentError"
msgstr ""
#: ../../library/argparse.rst:596
#, fuzzy
msgid "suggest_on_error"
msgstr "exit_on_error"
#: ../../library/argparse.rst:598
msgid ""
"By default, when a user passes an invalid argument choice or subparser "
"name, :class:`ArgumentParser` will exit with error info and list the "
"permissible argument choices (if specified) or subparser names as part of"
" the error message."
msgstr ""
#: ../../library/argparse.rst:602
msgid ""
"If the user would like to enable suggestions for mistyped argument "
"choices and subparser names, the feature can be enabled by setting "
"``suggest_on_error`` to ``True``. Note that this only applies for "
"arguments when the choices specified are strings::"
msgstr ""
#: ../../library/argparse.rst:607
msgid ""
">>> parser = argparse.ArgumentParser(description='Process some "
"integers.',\n"
" suggest_on_error=True)\n"
">>> parser.add_argument('--action', choices=['sum', 'max'])\n"
">>> parser.add_argument('integers', metavar='N', type=int, nargs='+',\n"
"... help='an integer for the accumulator')\n"
">>> parser.parse_args(['--action', 'sumn', 1, 2, 3])\n"
"tester.py: error: argument --action: invalid choice: 'sumn', maybe you "
"meant 'sum'? (choose from 'sum', 'max')"
msgstr ""
#: ../../library/argparse.rst:615
msgid ""
"If you're writing code that needs to be compatible with older Python "
"versions and want to opportunistically use ``suggest_on_error`` when it's"
" available, you can set it as an attribute after initializing the parser "
"instead of using the keyword argument::"
msgstr ""
#: ../../library/argparse.rst:620
msgid ""