유시지(usage) 출력까지는 어떻게 구현 했다. 그런데 이건 쉬운 문제고, 도움말이 정말 어려운 문제인데…

optique <main?> $ deno run example.ts 
Usage: example.ts one [-a/--allow] -v/--value INTEGER ARG
       example.ts two [-f/--foo] -b/--bar VALUE
       example.ts three [-d/--deny] -t/--test INTEGER [-z/--baz] -q/--qux QUX
       example.ts nest foo [-a/--allow] -v/--value INTEGER ARG
       example.ts nest bar [-f/--foo] -b/--bar VALUE
Error: No parser matched.
2

🎉

2 people reacted.

Hi. This is Jihyeok from South Korea, building web services for the public good. Here are some services I build and maintain:

  • Oeee Cafe: Oekaki drawing board community
  • Typo Blue: Text-only blogging platform
  • Naru: Geocities-like website hosting platform