Skip to content

Commit 3d87e04

Browse files
committed
Fixed bug for default application
1 parent a4e1a87 commit 3d87e04

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

adc.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
ADC_VERSION="v0.3.0"
3-
ADC_LAST_COMMIT="ff878c81ccbcf3e53c5f51cc09963ed0219d13b4"
3+
ADC_LAST_COMMIT="a4e1a87c70f8289cfd228f076ff783563c960dea"
44
USER_CONFIG="$HOME/.appdynamics/adc/config.sh"
55
GLOBAL_CONFIG="/etc/appdynamics/adc/config.sh"
66
CONFIG_CONTROLLER_COOKIE_LOCATION="/tmp/appdynamics-controller-cookie.txt"
@@ -287,7 +287,7 @@ function _help {
287287
COMMAND_RESULT="${COMMAND_RESULT}\t-H <controller-host>\t\t specify the host of the controller you want to connect to\n"
288288
COMMAND_RESULT="${COMMAND_RESULT}\t-C <controller-credentials>\t provide the credentials for the controller. Format: user@tenant:password\n"
289289
COMMAND_RESULT="${COMMAND_RESULT}\t-D <output-verbosity>\t\t Change the output verbosity. Provide a list of the following values: debug,error,warn,info,output\n"
290-
COMMAND_RESULT="${COMMAND_RESULT}\t-D <application-name>\t\t Provide a default application\n"
290+
COMMAND_RESULT="${COMMAND_RESULT}\t-A <application-name>\t\t Provide a default application\n"
291291
COMMAND_RESULT="${COMMAND_RESULT}\t-v[vv] \t\t\t\t Increase application verbosity: v = warn, vv = warn,info, vvv = warn,info,debug\n"
292292
COMMAND_RESULT="${COMMAND_RESULT}\nTo execute a action, provide a namespace and a command, e.g. \"metrics get\" to get a specific metric.\nFinally the following commands in the global namespace can be called directly:\n"
293293
local NAMESPACE=""
@@ -977,7 +977,7 @@ else
977977
warning "File ${USER_CONFIG} not found!"
978978
fi
979979
# Parse global options
980-
while getopts "H:C:J:D:P:S:F:Nv" opt;
980+
while getopts "A:H:C:J:D:P:S:F:Nv" opt;
981981
do
982982
case "${opt}" in
983983
H)

commands/help.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ function _help {
77
COMMAND_RESULT="${COMMAND_RESULT}\t-H <controller-host>\t\t specify the host of the controller you want to connect to\n"
88
COMMAND_RESULT="${COMMAND_RESULT}\t-C <controller-credentials>\t provide the credentials for the controller. Format: user@tenant:password\n"
99
COMMAND_RESULT="${COMMAND_RESULT}\t-D <output-verbosity>\t\t Change the output verbosity. Provide a list of the following values: debug,error,warn,info,output\n"
10-
COMMAND_RESULT="${COMMAND_RESULT}\t-D <application-name>\t\t Provide a default application\n"
10+
COMMAND_RESULT="${COMMAND_RESULT}\t-A <application-name>\t\t Provide a default application\n"
1111
COMMAND_RESULT="${COMMAND_RESULT}\t-v[vv] \t\t\t\t Increase application verbosity: v = warn, vv = warn,info, vvv = warn,info,debug\n"
1212
COMMAND_RESULT="${COMMAND_RESULT}\nTo execute a action, provide a namespace and a command, e.g. \"metrics get\" to get a specific metric.\nFinally the following commands in the global namespace can be called directly:\n"
1313
local NAMESPACE=""

main.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ else
119119
fi
120120

121121
# Parse global options
122-
while getopts "H:C:J:D:P:S:F:Nv" opt;
122+
while getopts "A:H:C:J:D:P:S:F:Nv" opt;
123123
do
124124
case "${opt}" in
125125
H)

0 commit comments

Comments
 (0)