2828import java .util .Map .Entry ;
2929
3030class AgentCommandLineParser {
31- private static final String DEPLOYMENT_COMMAND = "deployment" ;
3231 private static final String VERIFY_INSTRUMENTATION = "verifyInstrumentation" ;
3332 /**
3433 * Used to create the custom instrumentation file.
@@ -39,13 +38,10 @@ class AgentCommandLineParser {
3938
4039 static {
4140 commandOptionsMap = new HashMap <>();
42- commandOptionsMap .put (DEPLOYMENT_COMMAND , getDeploymentOptions ());
4341 commandOptionsMap .put (INSTRUMENT_COMMAND , getInstrumentOptions ());
4442 commandOptionsMap .put (VERIFY_INSTRUMENTATION , getVerifyInstrumentationOptions ());
4543
4644 commandDescriptions = new HashMap <>();
47- commandDescriptions .put (DEPLOYMENT_COMMAND , "[OPTIONS] [description] Records a deployment. Note: This command is deprecated and will be removed " +
48- "in the next major release." );
4945 commandDescriptions .put (INSTRUMENT_COMMAND , "[OPTIONS] Validates a custom instrumentation xml configuration file." );
5046 }
5147
@@ -72,9 +68,7 @@ public void parseCommand(String[] args) {
7268 cmd = parser .parse (commandOptions , args );
7369 }
7470
75- if (DEPLOYMENT_COMMAND .equals (command )) {
76- deploymentCommand (cmd );
77- } else if (INSTRUMENT_COMMAND .equals (command )) {
71+ if (INSTRUMENT_COMMAND .equals (command )) {
7872 instrumentCommand (cmd );
7973 } else if (VERIFY_INSTRUMENTATION .equals (command )) {
8074 verifyInstrumentation (cmd );
@@ -176,16 +170,6 @@ private static Options getBasicOptions() {
176170 return options ;
177171 }
178172
179- private static Options getDeploymentOptions () {
180- Options options = new Options ();
181- options .addOption (Deployments .APP_NAME_OPTION , true , "Set the application name. Default is app_name setting in newrelic.yml" );
182- options .addOption (Deployments .ENVIRONMENT_OPTION , true , "Set the environment (staging, production, test, development)" );
183- options .addOption (Deployments .USER_OPTION , true , "Specify the user deploying" );
184- options .addOption (Deployments .REVISION_OPTION , true , "Specify the revision being deployed" );
185- options .addOption (Deployments .CHANGE_LOG_OPTION , false , "Reads the change log for a deployment from standard input" );
186- return options ;
187- }
188-
189173 /**
190174 * Returns the instrumentation options.
191175 *
0 commit comments