def cmd_clean(cfg, args):
    next_store = KVStore(NEXT_STORE_FILE)
    if len(args.tag) > 0:
        tag = args.tag
    else:
        repo_info = get_repo_info()
        tag = repo_info['last-tag']

    has_custom = next_store.has(tag)
    next_custom = next_store.get(tag) if has_custom else None

    if has_custom:
        next_store.rm(tag).save()
        term.out("Cleaned up custom string version \"" + next_custom +
                 "\" for tag \"" + tag + "\"")
    else:
        term.out("No custom string version found for tag \"" + tag + "\"")
Create command line argument parser with common PostgreSQL options
dataset/ETHPy150Open manuelbua/gitver/gitver/commands.py/cmd_clean--crossover with--dataset/ETHPy150Open perseas/Pyrseas/pyrseas/cmdargs.py/cmd_parser