Skip to content

Commit

Permalink
[#42] Powershell arg parse fix
Browse files Browse the repository at this point in the history
  • Loading branch information
borkdude committed Apr 11, 2021
1 parent 76f5826 commit a1e20e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/borkdude/deps.clj
Original file line number Diff line number Diff line change
Expand Up @@ -300,10 +300,10 @@ For more info, see:
(if command-line-args
(let [arg (first command-line-args)
[arg command-line-args]
;; workaround for Powershell
;; workaround for Powershell, see GH-42
(if (and windows? (#{"-X:" "-M:" "-A:"} arg))
[(str arg (first command-line-args))
(rest command-line-args)]
[(str arg (second command-line-args))
(nnext command-line-args)]
[arg command-line-args])
bool-opt-keyword (get bool-opts->keyword arg)
string-opt-keyword (get string-opts->keyword arg)]
Expand Down

0 comments on commit a1e20e6

Please sign in to comment.