Skip to content

Commit

Permalink
updated for GetOpt.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kray-G committed Aug 18, 2021
1 parent a980ed6 commit f52e184
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 5 additions & 0 deletions lib/std/kxgetopt.kx
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,8 @@ _class GetOpt {
}
}
}

System.GetOpt.getFunction = _function() {
return new Fiber(new GetOpt().getopt).resume;
};
System.getopt = System.GetOpt.getFunction();
2 changes: 0 additions & 2 deletions lib/std/kxstartup.kx
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ var Xml, Net;
_functional_compose2 = __functional_compose2;
Range = _Range;
System.setupRange(Range.create);
System.GetOpt = GetOpt;
System.getopt = new Fiber(new GetOpt().getopt).resume;
Iconv = _Iconv;
Clipboard = _Clipboard;
$stdin = new File('<stdin>', File.READ);
Expand Down

0 comments on commit f52e184

Please sign in to comment.