From d6d0106795b7e3a1b13fd64eb0828ebcf535c0be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Deuchnord?= Date: Sun, 17 May 2020 09:52:58 +0200 Subject: [PATCH] docs: update --help message --- kosmorrolib/locales/messages.pot | 17 +++++++++-------- kosmorrolib/main.py | 6 +++--- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/kosmorrolib/locales/messages.pot b/kosmorrolib/locales/messages.pot index c2ef474..61cba8d 100644 --- a/kosmorrolib/locales/messages.pot +++ b/kosmorrolib/locales/messages.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: kosmorro 0.7.0\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2020-05-13 13:11+0200\n" +"POT-Creation-Date: 2020-05-17 10:04+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -277,28 +277,29 @@ msgstr "" #: kosmorrolib/main.py:157 msgid "" "The date for which the ephemerides must be computed (in the YYYY-MM-DD " -"format). Defaults to the current date ({default_date})" +"format), or as an interval in the \"[+-]YyMmDd\" format (with Y, M, and D" +" numbers). Defaults to the current date ({default_date})" msgstr "" -#: kosmorrolib/main.py:161 +#: kosmorrolib/main.py:162 msgid "" "The timezone to display the hours in (e.g. 2 for UTC+2 or -3 for UTC-3). " "Can also be set in the KOSMORRO_TIMEZONE environment variable." msgstr "" -#: kosmorrolib/main.py:164 +#: kosmorrolib/main.py:165 msgid "Disable the colors in the console." msgstr "" -#: kosmorrolib/main.py:166 +#: kosmorrolib/main.py:167 msgid "" "A file to export the output to. If not given, the standard output is " "used. This argument is needed for PDF format." msgstr "" -#: kosmorrolib/main.py:169 +#: kosmorrolib/main.py:170 msgid "" -"Generate a graph instead of a table to show the rise, culmination set " -"times (PDF only)" +"Do not generate a graph to represent the rise and set times in the PDF " +"format." msgstr "" diff --git a/kosmorrolib/main.py b/kosmorrolib/main.py index 60f6688..2159edd 100644 --- a/kosmorrolib/main.py +++ b/kosmorrolib/main.py @@ -154,7 +154,8 @@ def get_args(output_formats: [str]): help=_("The observer's longitude on Earth. Can also be set in the KOSMORRO_LONGITUDE " "environment variable.")) parser.add_argument('--date', '-d', type=str, default=today.strftime('%Y-%m-%d'), - help=_('The date for which the ephemerides must be computed (in the YYYY-MM-DD format). ' + help=_('The date for which the ephemerides must be computed (in the YYYY-MM-DD format), ' + 'or as an interval in the "[+-]YyMmDd" format (with Y, M, and D numbers). ' 'Defaults to the current date ({default_date})').format( default_date=today.strftime('%Y-%m-%d'))) parser.add_argument('--timezone', '-t', type=int, default=None, @@ -166,7 +167,6 @@ def get_args(output_formats: [str]): help=_('A file to export the output to. If not given, the standard output is used. ' 'This argument is needed for PDF format.')) parser.add_argument('--no-graph', dest='show_graph', action='store_false', - help=_('Generate a graph instead of a table to show the rise, culmination set times ' - '(PDF only)')) + help=_('Do not generate a graph to represent the rise and set times in the PDF format.')) return parser.parse_args()