Using the argparse lib, we define cli/0 as a behavior. However, this does not work with otp26’s argparse. What would be the correct way to run it?
There are two migration paths:
- Upgrade standalone
argparse
to version 2.0.0 that does not conflict with OTP 26 (thus no migration is needed). - Vendor in
cli.erl
file (literally, just check in the file into your own repository - the license permits that), and adjust type nameint -> integer
.
2 Likes
Many thanks for the reply! I took the second path