From 2dd52aaa16b27db058066449a941f292b6275447 Mon Sep 17 00:00:00 2001 From: horn Date: Wed, 9 Sep 2020 15:16:02 +0000 Subject: [PATCH] fix long argument lists for pygac-fdr-mda-collect --- bin/pygac-fdr-mda-collect | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/bin/pygac-fdr-mda-collect b/bin/pygac-fdr-mda-collect index fc356b9..625183c 100755 --- a/bin/pygac-fdr-mda-collect +++ b/bin/pygac-fdr-mda-collect @@ -15,6 +15,7 @@ # # You should have received a copy of the GNU General Public License along with # pygac-fdr. If not, see . +"""Collect metadata from level 1c files""" import argparse import logging @@ -24,9 +25,15 @@ from pygac_fdr.utils import logging_on, LOGGER_NAME LOG = logging.getLogger(LOGGER_NAME) +tooltip = """ +tooltip: %(prog)s --dbfile example.db @example_filenames.txt; +for reading a long list of filenames from an arguments file. +""" if __name__ == '__main__': - parser = argparse.ArgumentParser(description='Collect metadata from level 1c files') + parser = argparse.ArgumentParser(description=__doc__, + fromfile_prefix_chars='@', + epilog=tooltip) parser.add_argument('--dbfile', required=True, type=str, help='Metadata database to be written') parser.add_argument('--if-exists', choices=('append', 'fail', 'replace'), default='fail', help='What to do if database table already exists')