From bae329b9127277f3bf2c21098f4c2b015e1faead Mon Sep 17 00:00:00 2001 From: Guillaume Poirier-Morency Date: Mon, 16 Jan 2023 10:31:29 -0800 Subject: [PATCH] Mark the --name option as required for updateExternalDatabase --- .../java/ubic/gemma/core/apps/ExternalDatabaseUpdaterCli.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gemma-cli/src/main/java/ubic/gemma/core/apps/ExternalDatabaseUpdaterCli.java b/gemma-cli/src/main/java/ubic/gemma/core/apps/ExternalDatabaseUpdaterCli.java index 5299db8d10..404d8fbb5b 100644 --- a/gemma-cli/src/main/java/ubic/gemma/core/apps/ExternalDatabaseUpdaterCli.java +++ b/gemma-cli/src/main/java/ubic/gemma/core/apps/ExternalDatabaseUpdaterCli.java @@ -60,7 +60,8 @@ protected void buildOptions( Options options ) { .longOpt( "name" ) .hasArg() .optionalArg( false ) - .desc( "External database name" ).build() ); + .desc( "External database name" ) + .required( true ).build() ); options.addOption( DESCRIPTION_OPTION, "description", true, "New description" ); options.addOption( RELEASE_OPTION, "release", false, "Update the release (only affects last modified moment))" ); options.addOption( RELEASE_VERSION_OPTION, "release-version", true, "Release version" );