@@ -6,7 +6,7 @@ msgstr ""
6
6
"Project-Id-Version : Python 3\n "
7
7
"Report-Msgid-Bugs-To : \n "
8
8
"POT-Creation-Date : 2020-07-20 10:51+0200\n "
9
- "PO-Revision-Date : 2020-09-08 17:39 -0700\n "
9
+ "PO-Revision-Date : 2020-09-08 21:43 -0700\n "
10
10
"Last-Translator : Yannick Gingras <ygingras@ygingras.net>\n "
11
11
"Language-Team : FRENCH <traductions@lists.afpy.org>\n "
12
12
"Language : fr\n "
@@ -790,50 +790,64 @@ msgid ""
790
790
"action_ - The basic type of action to be taken when this argument is "
791
791
"encountered at the command line."
792
792
msgstr ""
793
+ "action_ – Type de élémentaire de l'action à entreprendre quand cet argument "
794
+ "est reconnu sur la ligne de commande."
793
795
794
796
#: library/argparse.rst:694
795
797
msgid "nargs_ - The number of command-line arguments that should be consumed."
796
- msgstr ""
798
+ msgstr "nargs_ – Le nombre d'arguments de la ligne de commande à consommer. "
797
799
798
800
#: library/argparse.rst:696
799
801
msgid ""
800
802
"const_ - A constant value required by some action_ and nargs_ selections."
801
803
msgstr ""
804
+ "const_ – Une valeur constante requise par certains choix d'action_ et de "
805
+ "nargs_."
802
806
803
807
#: library/argparse.rst:698
804
808
msgid ""
805
809
"default_ - The value produced if the argument is absent from the command "
806
810
"line."
807
811
msgstr ""
812
+ "default_ – La valeur produite si l'argument est absent de la ligne de "
813
+ "commande.c"
808
814
809
815
#: library/argparse.rst:701
810
816
msgid ""
811
817
"type_ - The type to which the command-line argument should be converted."
812
818
msgstr ""
819
+ "type_ – Le type vers lequel l'argument sur la ligne de commande devrait être "
820
+ "converti."
813
821
814
822
#: library/argparse.rst:703
815
823
msgid "choices_ - A container of the allowable values for the argument."
816
824
msgstr ""
825
+ "choices_ – Un conteneur qui contient toutes les valeurs permises pour cet "
826
+ "argument."
817
827
818
828
#: library/argparse.rst:705
819
829
msgid ""
820
830
"required_ - Whether or not the command-line option may be omitted (optionals "
821
831
"only)."
822
832
msgstr ""
833
+ "required_ – ``True`` si l'option sur la ligne de commande est obligatoire "
834
+ "(ne s'applique qu'aux arguments optionnels)."
823
835
824
836
#: library/argparse.rst:708
825
837
msgid "help_ - A brief description of what the argument does."
826
- msgstr ""
838
+ msgstr "help_ – Une brève description de ce que fait l'argument. "
827
839
828
840
#: library/argparse.rst:710
829
841
msgid "metavar_ - A name for the argument in usage messages."
830
- msgstr ""
842
+ msgstr "metavar_ – Le nom pour l'argument dans les messages d'utilisations. "
831
843
832
844
#: library/argparse.rst:712
833
845
msgid ""
834
846
"dest_ - The name of the attribute to be added to the object returned by :"
835
847
"meth:`parse_args`."
836
848
msgstr ""
849
+ "dest_ – Le nom de l'attribut qui sera ajouté à l'objet retourné par :meth:"
850
+ "`parse_args`."
837
851
838
852
#: library/argparse.rst:719
839
853
msgid "name or flags"
@@ -848,17 +862,27 @@ msgid ""
848
862
"or a simple argument name. For example, an optional argument could be "
849
863
"created like::"
850
864
msgstr ""
865
+ "La méthode :meth:`~ArgumentParser.add_argument` doit savoir si c'est un "
866
+ "argument optionnel (tel que ``-f`` ou ``--foo``) ou plutôt un argument "
867
+ "positionnel (tel qu'une liste de noms de fichiers) qui est attendu. Le "
868
+ "premier argument passé à :meth:`~ArgumentParser.add_argument` doit ainsi "
869
+ "être soit une série de noms d'options tels qu'ils apparaissent sur la ligne "
870
+ "de commande ou simplement un nom si on désire un argument positionnel. Par "
871
+ "exemple, un argument optionnel est créé comme suit ::"
851
872
852
873
#: library/argparse.rst:730
853
874
msgid "while a positional argument could be created like::"
854
- msgstr ""
875
+ msgstr "alors qu'un argument positionnel est créé comme suit :: "
855
876
856
877
#: library/argparse.rst:734
857
878
msgid ""
858
879
"When :meth:`~ArgumentParser.parse_args` is called, optional arguments will "
859
880
"be identified by the ``-`` prefix, and the remaining arguments will be "
860
881
"assumed to be positional::"
861
882
msgstr ""
883
+ "Lors le l'appel de :meth:`~ArgumentParser.parse_args`, les arguments qui "
884
+ "commencent par le préfixe ``-`` sont présumés optionnels et tous les autres "
885
+ "sont présumés positionnels ::"
862
886
863
887
#: library/argparse.rst:751
864
888
msgid "action"
@@ -873,19 +897,32 @@ msgid ""
873
897
"``action`` keyword argument specifies how the command-line arguments should "
874
898
"be handled. The supplied actions are:"
875
899
msgstr ""
900
+ "Les objets :class:`ArgumentParser` associent les arguments de la ligne de "
901
+ "commande avec des actions. C'est actions peuvent faire n'importe quel "
902
+ "traitement avec les arguments de la ligne de commande auxquels elles sont "
903
+ "associées, mais la majorité des actions se contente d'ajouter un attribut à "
904
+ "l'objet renvoyé par :meth:`~ArgumentParser.parse_args`. L'argument nommé "
905
+ "``action`` indique comment l'argument de la ligne de commande sera traité. "
906
+ "Les actions natives sont :"
876
907
877
908
#: library/argparse.rst:759
878
909
msgid ""
879
910
"``'store'`` - This just stores the argument's value. This is the default "
880
911
"action. For example::"
881
912
msgstr ""
913
+ "``'store'`` – Stocker la valeur de l'argument sans autre traitement. Ceci "
914
+ "est l'action par défaut. Par exemple :"
882
915
883
916
#: library/argparse.rst:767
884
917
msgid ""
885
918
"``'store_const'`` - This stores the value specified by the const_ keyword "
886
919
"argument. The ``'store_const'`` action is most commonly used with optional "
887
920
"arguments that specify some sort of flag. For example::"
888
921
msgstr ""
922
+ "``'store_const'`` – Stocker la valeur passé à l'argument nommé const_. "
923
+ "L'action ``'store_const'`` est typiquement utilisé avec des arguments "
924
+ "optionnels qui représente un drapeau ou une condition similaire. Par "
925
+ "exemple ::"
889
926
890
927
<
9E81
div class="diff-text-inner">#: library/argparse.rst:776
891
928
msgid ""
@@ -894,13 +931,20 @@ msgid ""
894
931
"respectively. In addition, they create default values of ``False`` and "
895
932
"``True`` respectively. For example::"
896
933
msgstr ""
934
+ "``'store_true'`` et ``'store_false'`` – Ces actions sont des cas "
935
+ "particuliers de ``'store_const'`` pour lesquels la valeur stocké est "
936
+ "``True`` et ``False``, respectivement. Aussi, ces action ont comme valeur "
937
+ "par défaut ``False`` et ``True``, respectivement. Par exemple ::"
897
938
898
939
#: library/argparse.rst:788
899
940
msgid ""
900
941
"``'append'`` - This stores a list, and appends each argument value to the "
901
942
"list. This is useful to allow an option to be specified multiple times. "
902
943
"Example usage::"
903
944
msgstr ""
945
+ "``'append'`` – Cette action stock une liste et ajoute le valeur de "
946
+ "l'argument à la liste. Ceci est pratique pour les options qui peuvent être "
947
+ "répétées sur la ligne de commande ::"
904
948
905
949
#: library/argparse.rst:797
906
950
msgid ""
0 commit comments