diff --git a/bin/rbpkg_ci b/bin/rbpkg_ci
index 675978b..c4aa13d 100755
--- a/bin/rbpkg_ci
+++ b/bin/rbpkg_ci
@@ -36,6 +36,9 @@ def rbpkg_ci
usage
when "--help"
usage
+ when "--upgrade"
+ Rbpkg.upgrade_self
+ shift
end
repo = shift
branch = $ARGS[0] ? shift : nil