storacha-network / w3cli

💾 w3 command line interface
Other
30 stars 7 forks source link

fix: make `w3 up --no-wrap` work as advertised. #160

Closed olizilla closed 7 months ago

olizilla commented 7 months ago

Fix and test handling of --wrap option to w3 up

flag result
undefined wrap: true
--wrap wrap: true
--wrap true wrap: true
--wrap=true wrap: true
--wrap false wrap: false
--wrap=false wrap: false
--no-wrap wrap: false

Also normalises the behaviour of other boolean flags to w3 up so we can set them like w3 up --hidden=${{input.hidden}} in scripts, where it would be fiddly to optionally include a flag. see: https://github.com/web3-storage/add-to-web3/pull/89/files#diff-1243c5424efaaa19bd8e813c5e6f6da46316e63761421b3e5f5c8ced9a36e6b6R51

License: MIT

olizilla commented 7 months ago

not sure what happend in #153 but I promise this makes it work more intuitively.