def add_inheritance_args(parser, min_kindreds=1, depth=True, gt_ll=False,
    allow_unaffected=True, lenient=True, gq=True):
    """Common arguments added to various sub-parsers"""
    parser.add_argument('db', metavar='db', help=
        'The name of the database to be queried.')
    parser.add_argument('--columns', dest='columns', metavar='STRING', help
        ='A list of columns that you would like returned. Def. = "*"')
    parser.add_argument('--filter', dest='filter', metavar='STRING', help=
        'Restrictions to apply to variants (SQL syntax)')
    parser.add_argument('--min-kindreds', dest='min_kindreds', type=int,
        default=min_kindreds, help=
        'The min. number of kindreds that must have a candidate variant in a gene.'
        )
    parser.add_argument('--families', dest='families', help=
        'Restrict analysis to a specific set of 1 or more (comma) separated) families'
        , default=None)
    if lenient:
        parser.add_argument('--lenient', default=False, action='store_true',
            help='Loosen the restrictions on family structure')
    if allow_unaffected:
        parser.add_argument('--allow-unaffected', action='store_true', help
            =
            'Report candidates that also impact samples labeled as unaffected.'
            , default=False)
    if depth:
        parser.add_argument('-d', dest='min_sample_depth', type=int, help=
            'The minimum aligned              sequence depth required for              each sample in a family (default = 0)'
            , default=0)
    if gq:
        parser.add_argument('--min-gq', type=int, help=
            'The minimum genotype quality required for                each sample in a family (default = 0)'
            , default=0)
    if gt_ll:
        parser.add_argument('--gt-pl-max', dest='gt_phred_ll', type=int,
            help=
            'The maximum phred-scaled genotype likelihod (PL) allowed for each sample in a family.'
            , default=None)
