fix: get the correct option
Relate #92
- Remove exactly option in
argsinstead ofargs[0](useArray.protpty.spliceto remove) - Chang option
--config, '-c' to--cfg(conflict option with deno) - Fixed wrong version for
--upgrade:--upgrade latestbecomelatestinstead ofvlates
Old parseArgs(["--cfg", "config.json"]):

Old parseArgs(["--upgrade", "latest"]):

Test #92: deno install -n denon2 -qAf --unstable https://raw.githubusercontent.com/hong4rc/denon/option/denon.ts
and call denon2 run -A --config tsconfig.json main.ts
and got:
[!] [#0] starting
--config tsconfig.json main.ts
@eliassjogreen Are you want to use this or force --config is the first argument?
Sorry for taking so long, whats your thought on this @qu4k?
Is this repo not being maintained? If not are there forks with activity and response/feedback from the developers?
I don't know if this PR is still relevant but I would advise against merging in this state. .splice() mutates an array, but Deno.args is immutable and Deno errors if you try to mutate it.