]> git.corax.cc Git - toolbox/commitdiff
include/inst: Use new opt flags
authorMatthias Kruk <m@m10k.eu>
Sun, 6 Jun 2021 02:08:00 +0000 (11:08 +0900)
committerMatthias Kruk <m@m10k.eu>
Sun, 6 Jun 2021 02:14:26 +0000 (11:14 +0900)
Calls to opt_add_arg() in the inst module still use the old way to
specify option flags, which is incompatible with the current opt
module.
This commit changes the calls to pass the option flags in the new way.

include/inst.sh

index 1bd5842e72afdb416debf3d59248e668ba0592e9..c27b40fc499ead37c41a2b73661fca4cfd1d84b4 100644 (file)
@@ -21,8 +21,8 @@ __init() {
                return 1
        fi
 
-       opt_add_arg "l" "list" "no"  0  "List running instances"  _inst_handle_opt
-       opt_add_arg "s" "stop" "yes" "" "Stop a running instance" _inst_handle_opt
+       opt_add_arg "l" "list" ""  0  "List running instances"  _inst_handle_opt
+       opt_add_arg "s" "stop" "v" "" "Stop a running instance" _inst_handle_opt
 
        return 0
 }