diff --git a/src/cephadm/cephadm b/src/cephadm/cephadm index e79ff3e5b1f..6031e2535e8 100755 --- a/src/cephadm/cephadm +++ b/src/cephadm/cephadm @@ -3992,6 +3992,8 @@ def create_packager(stable=None, version=None, branch=None, commit=None): def command_add_repo(): if args.version and args.release: raise Error('you can specify either --release or --version but not both') + if not args.version and not args.release and not args.dev and not args.dev_commit: + raise Error('please supply a --release, --version, --dev or --dev-commit argument') if args.version: try: (x, y, z) = args.version.split('.')