aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rwxr-xr-xapp13
1 files changed, 2 insertions, 11 deletions
diff --git a/app b/app
index 97be044..c6ef8e6 100755
--- a/app
+++ b/app
@@ -352,16 +352,15 @@ method_stop() {
method_list() {
local mode="pretty"
- while getopts "Pn:" opt
+ while getopts "P:n:" opt
do
case $opt in
P)
mode="parseable"
- shift
+ vars="$vars $OPTARG"
;;
n)
filter_name=$OPTARG
- shift
;;
\?)
install_usage "Invalid option: -$OPTARG"
@@ -374,14 +373,6 @@ method_list() {
return
fi
- x="$@"
- if [ -z "$x" ]
- then
- vars="name instance version"
- else
- vars="$@"
- fi
-
if [ $mode = "pretty" ]
then
printf "%-20s %-20s %-20s\n" "Name" "Instance" "Version"