Skip to content

Commit

Permalink
fix(core): _KCS_CMD_ARGS is missing when user didn't load options lib
Browse files Browse the repository at this point in the history
  • Loading branch information
kamontat committed Nov 20, 2023
1 parent 10a4f3b commit 6715e1e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/private/command.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ __kcs_command_start() {

test -n "$extra" && _KCS_CMD_ARGS_EXTRA="$extra"
test -n "$raw" && _KCS_CMD_ARGS_RAW="$raw"
## Export default $_KCS_CMD_ARGS as arguments from user
## Later this will be override if user load options lib
_KCS_CMD_ARGS=("$@")

_KCS_CMD_PATH="$0"
kcs_log_debug "$ns" "set command path to '%s'" "$_KCS_CMD_PATH"
Expand Down

0 comments on commit 6715e1e

Please sign in to comment.