You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for opening your first issue here! In case you're facing a bug, please update docpars to the latest version first. Maybe the bug is already solved! :)
Describe the bug
Found a bug with optional arguments and final array.
To Reproduce
Define a docopt like this one in a shell script:
Call the script with arguments:
Show output:
pkgmgr: true package_manager: cargo packages: docpars deno bashdoc
Fail 1
All went well, but if you call with arguments:
Will show you:
The
docpars
value is inpackage_manager
and not in the final array.Fail 2
And finally if you call the script with arguments:
It will output:
cargo
is inpackages_names
instead ofpackage_manager
.Expected behavior
Case fail 1
pkgmgr: false package_manager: packages: docpars deno bashdoc
Case fail 2
Screenshots
Versions:
sh --version
]Additional context
The script is
dot package add
of my Dotly fork, see it here:The text was updated successfully, but these errors were encountered: