Mercurial > repos > shellac > guppy_basecaller
diff env/lib/python3.7/site-packages/ephemeris/common_parser.py @ 5:9b1c78e6ba9c draft default tip
"planemo upload commit 6c0a8142489327ece472c84e558c47da711a9142"
| author | shellac |
|---|---|
| date | Mon, 01 Jun 2020 08:59:25 -0400 |
| parents | 79f47841a781 |
| children |
line wrap: on
line diff
--- a/env/lib/python3.7/site-packages/ephemeris/common_parser.py Thu May 14 16:47:39 2020 -0400 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -#!/usr/bin/env python - -import argparse - - -def get_common_args(login_required=True, log_file=False): - - parser = argparse.ArgumentParser(add_help=False) - general_group = parser.add_argument_group('General options') - general_group.add_argument("-v", "--verbose", help="Increase output verbosity.", action="store_true") - if log_file: - general_group.add_argument("--log_file", - dest="log_file", - help="Where the log file should be stored. " - "Default is a file in your system's temp folder", - default=None) - - con_group = parser.add_argument_group('Galaxy connection') - con_group.add_argument("-g", "--galaxy", - help="Target Galaxy instance URL/IP address", - default="http://localhost:8080") - - if login_required: - con_group.add_argument("-u", "--user", - help="Galaxy user email address") - con_group.add_argument("-p", "--password", - help="Password for the Galaxy user") - con_group.add_argument("-a", "--api_key", - dest="api_key", - help="Galaxy admin user API key (required if not defined in the tools list file)") - - return parser
