From f52e1849c5aedf7e211d93d3048e6645a7134772 Mon Sep 17 00:00:00 2001 From: Kray-G Date: Wed, 18 Aug 2021 21:27:17 +0900 Subject: [PATCH] updated for GetOpt. --- lib/std/kxgetopt.kx | 5 +++++ lib/std/kxstartup.kx | 2 -- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/std/kxgetopt.kx b/lib/std/kxgetopt.kx index 47e607ef7..2e7fdbb7f 100644 --- a/lib/std/kxgetopt.kx +++ b/lib/std/kxgetopt.kx @@ -93,3 +93,8 @@ _class GetOpt { } } } + +System.GetOpt.getFunction = _function() { + return new Fiber(new GetOpt().getopt).resume; +}; +System.getopt = System.GetOpt.getFunction(); diff --git a/lib/std/kxstartup.kx b/lib/std/kxstartup.kx index cc28683b2..87bb8f016 100644 --- a/lib/std/kxstartup.kx +++ b/lib/std/kxstartup.kx @@ -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('', File.READ);