fix(sterni/acme/mkbqnkeyboard.bqn): allow multiple flags in one arg
Change-Id: I203cc50997f9292cef7a3383dadb96fc97108ca6 Reviewed-on: https://cl.tvl.fyi/c/depot/+/13099 Tested-by: BuildkiteCI Autosubmit: sterni <sternenseemann@systemli.org> Reviewed-by: sterni <sternenseemann@systemli.org>
This commit is contained in:
parent
3224488a29
commit
473d3c3761
2 changed files with 2 additions and 3 deletions
|
|
@ -17,8 +17,7 @@ IsAscii ← 127⊸≥-⟜@
|
||||||
# Parse CLI
|
# Parse CLI
|
||||||
opts ← {
|
opts ← {
|
||||||
flags‿args ← 2↑'-' ((≠⟜⊑)¨⊔⊢) 𝕩
|
flags‿args ← 2↑'-' ((≠⟜⊑)¨⊔⊢) 𝕩
|
||||||
# TODO(sterni): support multiple flags in one argument, e.g. -si
|
⟨sort,help,inPlace⟩ ⇐ "shi"∊∾1⊸↓¨flags
|
||||||
⟨sort,help,inPlace⟩ ⇐ flags∊˜⟨"-s","-h","-i"⟩
|
|
||||||
|
|
||||||
argCount ← 2
|
argCount ← 2
|
||||||
{𝕤
|
{𝕤
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ let
|
||||||
(builtins.readDir dir));
|
(builtins.readDir dir));
|
||||||
|
|
||||||
mkbqnkeyboard' = pkgs.writeShellScript "mkbqnkeyboard'" ''
|
mkbqnkeyboard' = pkgs.writeShellScript "mkbqnkeyboard'" ''
|
||||||
exec ${pkgs.cbqn}/bin/BQN ${../mkbqnkeyboard.bqn} -s -i \
|
exec ${pkgs.cbqn}/bin/BQN ${../mkbqnkeyboard.bqn} -si \
|
||||||
"${pkgs.srcOnly pkgs.mbqn}/editors/inputrc" "$1"
|
"${pkgs.srcOnly pkgs.mbqn}/editors/inputrc" "$1"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue