convert '<package> [--version=<version>]' to '<package>[:<version>]'