#!/usr/bin/env python
"""
Given a semantic version number as a command line argument print the next
version number by incrementing the patch version:

    $ bin/next_version 1.2.3
    1.2.4

This doesn't do robust semantic version number parsing. It assumes that the
given version number is a simple one like 1.2.3.
"""
import sys

current_version = sys.argv[1]
major, minor, patch = current_version.split(".")
next_version = f"{major}.{minor}.{int(patch) + 1}"

print(next_version)
