wryun / es-shell

es: a shell with higher-order functions
http://wryun.github.io/es-shell/
Other
307 stars 25 forks source link

Use esopt() for option parsing in main #61

Closed jpco closed 10 months ago

jpco commented 11 months ago

When I filed #60 I forgot that es already has built-in option parsing! So for consistency and concision's sake let's use that for main() as well.

Seems to work with trip.es and GCDEBUG (when built on top of #52).

I tried a much more extreme change to main and other es entry points in https://github.com/jpco/es-shell/blob/es-main/runtime.es#L219 but couldn't get the exact behavior right :/

This fixes #60. Should be otherwise completely transparent to users.

wryun commented 10 months ago

Looks good - thanks! Checked for plausibility; will now run it myself for a while.