[orca: 1/2] Add description for --version command line option



commit 81104ed1c79fec7ef1e6ea1ffd3079373ba196ce
Author: scootergrisen <scootergrisen gmail com>
Date:   Mon Jun 29 19:35:35 2020 +0200

    Add description for --version command line option

 src/orca/messages.py    | 4 ++++
 src/orca/orca_bin.py.in | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/src/orca/messages.py b/src/orca/messages.py
index 48f9eaa75..ff4338f53 100644
--- a/src/orca/messages.py
+++ b/src/orca/messages.py
@@ -253,6 +253,10 @@ CLI_LOAD_PREFS = _("Use alternate directory for user preferences")
 # using the '-u, --user-prefs' command line option.
 CLI_PREFS_DIR = _("DIR")
 
+# Translators: This is the description of command line option '-v, --version'
+# which prints the version of Orca. E.g. '1.23.4'.
+CLI_VERSION = _("Version of this application")
+
 # Translators: This is the description of command line option '-r, --replace'
 # which tells Orca to replace any existing Orca process that might be running.
 CLI_REPLACE = _("Replace a currently running instance of this screen reader")
diff --git a/src/orca/orca_bin.py.in b/src/orca/orca_bin.py.in
index 18faef02b..b8e0274cc 100644
--- a/src/orca/orca_bin.py.in
+++ b/src/orca/orca_bin.py.in
@@ -106,7 +106,7 @@ class Parser(argparse.ArgumentParser):
         self.add_argument(
             "-h", "--help", action="help", help=messages.CLI_HELP)
         self.add_argument(
-            "-v", "--version", action="version", version=version, help=version)
+            "-v", "--version", action="version", help=messages.CLI_VERSION)
         self.add_argument(
             "-r", "--replace", action="store_true", help=messages.CLI_REPLACE)
         self.add_argument(


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]