def parse_args(args):
    """
    Parse command line parameters

    :param args: command line parameters as list of strings
    :return: command line parameters as :obj:`argparse.Namespace`
    """
    parser = argparse.ArgumentParser(
        description="Concatenate and preprocess tweet json files dumped by tweetget")
    parser.add_argument(
        '-v',
        '--verbose',
        help='Whether to show progress messages on stdout',
        action='store_true')
    parser.add_argument(
        '--version',
        help='print twip package version and exit.',
        action='version',
        version='twip {ver}'.format(ver=__version__))
    parser.add_argument(
        '-p',
        '--path',
        help='path to data dir (json input and csv output files)',
        default=DATA_PATH)
    parser.add_argument(
        '-t',
        '--tweetfile',
        help='file to store normalized table (csv) of tweets and features (metadata)',
        default='all_tweets.csv')
    parser.add_argument(
        '-n',
        '--numtweets',
        help='maximum number of tweets to process',
        type=int,
        default=1000000)
    parser.add_argument(
        '-g',
        '--geofile',
        help="file to store tweet lat/lon information (few use it)",
        default='geo_tweets.csv')
    return parser.parse_args(args)
Parse command line parameters

    :param args: command line parameters as list of strings
    :return: command line parameters as :obj:`argparse.Namespace`