How do I migrate from argparser lib to native argparse OTP/26?

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:

  1. Upgrade standalone argparse to version 2.0.0 that does not conflict with OTP 26 (thus no migration is needed).
  2. Vendor in cli.erl file (literally, just check in the file into your own repository - the license permits that), and adjust type name int -> integer.

Many thanks for the reply! I took the second path