def parsecommon(parser):
    """
    Parse common arguments
    """
    parser.add_argument("--bufsz", help="size of buffer",
                        type=int,  default=20)
    parser.add_argument("--nch", help="Number of cells",
                        type=int, default=1000)
    parser.add_argument("--fs", help="spike sampling rate",
                        type=int, default=1000)
    parser.add_argument("--port", help="port to connect to",
                        type=int, default=29170)
    return parser