Change the name of the CSV file argument to avoid upstream naming collisions

This commit is contained in:
Jon Chambers 2021-11-30 11:31:12 -05:00
parent bb4f4bc441
commit e485c380e0
1 changed files with 3 additions and 3 deletions

View File

@ -60,8 +60,8 @@ public class MigrateProfilesCommand extends EnvironmentCommand<WhisperServerConf
.setDefault(64)
.help("The maximum number of concurrent DynamoDB requests");
subparser.addArgument("-f", "--file")
.dest("file")
subparser.addArgument("--csv-file")
.dest("csvFile")
.type(String.class)
.required(false)
.help("A CSV containing UUID/version pairs to migrate; if not specified, all profiles are migrated");
@ -88,7 +88,7 @@ public class MigrateProfilesCommand extends EnvironmentCommand<WhisperServerConf
ProfilesDynamoDb profilesDynamoDb = new ProfilesDynamoDb(dynamoDbClient, dynamoDbAsyncClient,
configuration.getDynamoDbTables().getProfiles().getTableName());
final String csvFile = namespace.getString("file");
final String csvFile = namespace.getString("csvFile");
if (StringUtils.isNotBlank(csvFile)) {
migrateFromCsvFile(profiles, profilesDynamoDb, csvFile);