HeyPuter / phoenix

🔥 Puter's pure-javascript shell
https://puter.com/app/terminal
GNU Affero General Public License v3.0
90 stars 15 forks source link

help: Copy the DEFAULT_OPTIONS object rather than directly adding to it #58

Closed AtkinsSJ closed 6 months ago

AtkinsSJ commented 6 months ago

This was causing options from previous calls to printUsage() to stick around and be displayed for subsequent calls.

KernelDeimos commented 6 months ago

Ah good ol' unintended mutation of static objects