aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas "Cakeisalie5" Touhey <thomas@touhey.fr>2017-07-23 19:43:55 +0200
committerThomas "Cakeisalie5" Touhey <thomas@touhey.fr>2017-07-23 19:43:55 +0200
commitc90454dd47829c8d28cb8e2fa3891421cb7c6c24 (patch)
treebb25b695a8865100978fa7988bba91a845c83dd6
parent746cf8a8e2b5785aae3277795d678122643c692f (diff)
Added help message for the utilities.
-rw-r--r--tools/Internals/locales/en_US.yml12
-rw-r--r--tools/Internals/locales/fr_FR.yml14
-rwxr-xr-xtools/configure.py2
-rwxr-xr-xtools/getcopyright.py2
-rwxr-xr-xtools/make.py2
-rwxr-xr-xtools/updatesource.py2
6 files changed, 30 insertions, 4 deletions
diff --git a/tools/Internals/locales/en_US.yml b/tools/Internals/locales/en_US.yml
index bcef4ca..19760c9 100644
--- a/tools/Internals/locales/en_US.yml
+++ b/tools/Internals/locales/en_US.yml
@@ -12,6 +12,18 @@ args:
files: the files to check
hide_pub: hide files that haven't got any copyright
recursive: go through the folders recursively
+desc:
+ configure: >-
+ Configures libcarrot to adapt it to many kinds of systems.
+ getcopyright: >-
+ Get the copyright of one or more files using the machine-readable
+ copyright information files.
+ make: >-
+ Build libcarrot, clean (remove the generated files), install the built
+ files, and more operations requiring the library to be configured.
+ updatesource: >-
+ Update the top-level comments of the module source, include files and
+ header bits using the machine-readable copyright and roles files.
prefix:
syntax: "Syntax"
positionals: "Positional arguments"
diff --git a/tools/Internals/locales/fr_FR.yml b/tools/Internals/locales/fr_FR.yml
index d886fb9..a2eabc4 100644
--- a/tools/Internals/locales/fr_FR.yml
+++ b/tools/Internals/locales/fr_FR.yml
@@ -12,6 +12,20 @@ args:
files: les fichiers à analyser
hide_pub: cacher les fichiers sans copyright
recursive: parcourir les dossiers récursivement
+desc:
+ configure: >-
+ Configure la libcarrot pour l'adapter à divers systèmes.
+ getcopyright: >-
+ Donne les auteurs d'un ou plusieurs fichiers à l'aide des fichiers de
+ copyright interprétable.
+ make: >-
+ Construit la libcarrot, nettoie (supprime les fichiers générés),
+ installe les fichiers construits, et plus d'opérations requérant la
+ configuration du projet.
+ updatesource: >-
+ Met à jour le commentaire initial des fichiers source, inclus et de
+ bouts de fichiers inclus en utilisant les fichiers de copyright et de
+ rôles interprétables.
prefix:
syntax: "Syntaxe "
positionals: "Arguments positionnels "
diff --git a/tools/configure.py b/tools/configure.py
index b29d0cf..b12ccba 100755
--- a/tools/configure.py
+++ b/tools/configure.py
@@ -32,7 +32,7 @@ def __getendian():
#*****************************************************************************#
# Set up the arguments parser #
#*****************************************************************************#
-argparser = CarrotArgumentParser()
+argparser = CarrotArgumentParser(loc['desc']['configure'])
# Main arguments.
argparser.add_argument('-v', '/V', '--version', dest='version',
diff --git a/tools/getcopyright.py b/tools/getcopyright.py
index 7c2a0e6..f9b844f 100755
--- a/tools/getcopyright.py
+++ b/tools/getcopyright.py
@@ -9,7 +9,7 @@ from Internals import *
#*****************************************************************************#
# Set up the arguments parser #
#*****************************************************************************#
-argparser = CarrotArgumentParser()
+argparser = CarrotArgumentParser(loc['desc']['getcopyright'])
# Main arguments.
argparser.add_argument('path', nargs='+', help=loc['args']['files'])
diff --git a/tools/make.py b/tools/make.py
index ed4c717..a7ea6e8 100755
--- a/tools/make.py
+++ b/tools/make.py
@@ -17,7 +17,7 @@ from Internals import *
#*****************************************************************************#
# Parse arguments #
#*****************************************************************************#
-argparser = CarrotArgumentParser()
+argparser = CarrotArgumentParser(loc['desc']['make'])
# Set up the arguments.
argparser.add_argument('-c', '--config', dest='config',
diff --git a/tools/updatesource.py b/tools/updatesource.py
index d06d9f2..126e8dc 100755
--- a/tools/updatesource.py
+++ b/tools/updatesource.py
@@ -27,7 +27,7 @@ def __get_license_statement(license):
#*****************************************************************************#
# Set up the arguments parser #
#*****************************************************************************#
-argparser = CarrotArgumentParser()
+argparser = CarrotArgumentParser(loc['desc']['updatesource'])
# No arguments for now.
#*****************************************************************************#