dockonsurf / modules / config_arg.py @ a5cc42ff
Historique | Voir | Annoter | Télécharger (427 octet)
1 |
"""Configures the command-line arguments the programs can be called with"""
|
---|---|
2 |
import argparse |
3 |
|
4 |
|
5 |
def get_args(): |
6 |
parser = argparse.ArgumentParser() |
7 |
parser.add_argument('-i', '--input', |
8 |
help='input file to read the calculation details',
|
9 |
required=True)
|
10 |
parser.add_argument('--debug',
|
11 |
help='Turns on debug verbosity')
|
12 |
return parser.parse_args()
|