Return a Loci object giving the loci specified on the command line.

    If no loci-related arguments are specified, return None. This makes it
    possible to distinguish an empty set of loci, for example due to filters
    removing all loci, from the case where the user didn't specify any
    arguments.

def load_from_args(args):
    """
    Return a Loci object giving the loci specified on the command line.

    If no loci-related arguments are specified, return None. This makes it
    possible to distinguish an empty set of loci, for example due to filters
    removing all loci, from the case where the user didn't specify any
    arguments.
    """
    if not args.locus:
        return None

    loci_iterator = (Locus.parse(locus) for locus in args.locus)

#   if args.neighbor_offsets:
#       loci_iterator = expand_with_neighbors(
#           loci_iterator, args.neighbor_offsets)

    return Loci(loci_iterator)