aboutsummaryrefslogtreecommitdiff
path: root/scripts/rqtl2/cli_parser.py
blob: bcc7a4f6b3add2d12802c7526b78b2aaf127c415 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
"""Utilities for CLI parsers specific to R/qtl2 parsing scripts."""
from pathlib import Path
from argparse import ArgumentParser

def add_common_arguments(parser: ArgumentParser) -> ArgumentParser:
    """Add common arguments to the CLI parser."""
    parser.add_argument("datasetid",
                        type=int,
                        help="The dataset to which the data belongs.")
    parser.add_argument("rqtl2bundle",
                        type=Path,
                        help="Path to R/qtl2 bundle zip file.")
    return parser