Skip to content

Commit

Permalink
Merge pull request #27 from carloshorn/fromfile_arguments
Browse files Browse the repository at this point in the history
fix long argument lists for pygac-fdr-mda-collect
  • Loading branch information
sfinkens authored Sep 9, 2020
2 parents 9deca13 + 2dd52aa commit dc326a3
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion bin/pygac-fdr-mda-collect
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#
# You should have received a copy of the GNU General Public License along with
# pygac-fdr. If not, see <http://www.gnu.org/licenses/>.
"""Collect metadata from level 1c files"""

import argparse
import logging
Expand All @@ -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')
Expand Down

0 comments on commit dc326a3

Please sign in to comment.