1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-10-02 09:10:11 +02:00

metadata: make help for metadata -W option clearer

specify possible choices and provide clearer help text
This commit is contained in:
Marcus Hoffmann 2017-10-06 17:42:01 +02:00 committed by Marcus Hoffmann
parent 2dcb19d392
commit 0f18005104

View File

@ -1545,5 +1545,5 @@ def write_metadata(metadatapath, app):
def add_metadata_arguments(parser):
'''add common command line flags related to metadata processing'''
parser.add_argument("-W", default='error',
help=_("force errors to be warnings, or ignore"))
parser.add_argument("-W", choices=['error', 'warn', 'ignore'], default='error',
help=_("force metadata errors (default) to be warnings, or to be ignored."))