bug in parse() #229
Labels
🗄 area/interface
This affects the public interface
🏡 area/internal
This affects the hidden internals
👶 semver/patch
This is a backwards-compatible fix
🐛 type/bug
This is a problem
update
.parse
method to(remove the first argument if not in single mode)
Currently it is causing
toFlags
to stringify theargv._
which includes the "current command" and this makes problems.For example, when running
hela build
theargv
(first argument) that is passed to the.action
hasargv._ === ['build']
, with above update it will be empty array. For getting args, flags, argv and etc, you can access the bigger picture from the second passed argument, which looks like the followingThe text was updated successfully, but these errors were encountered: