use clap
for handling CLI args
#2215
Labels
enhancement
New feature or request
good first issue
Good for newcomers
Good test task
technical debt
Currently, the help flag is handled in this way:
komodo-defi-framework/mm2src/mm2_main/src/mm2.rs
Lines 152 to 163 in 35e9239
And the CLI arguments are managed like this:
komodo-defi-framework/mm2src/mm2_main/src/mm2.rs
Lines 246 to 262 in 35e9239
Neither approach is sustainable or maintainable and they can easily become outdated or unsynced. Ideally we should use clap (with derive support to handle them on the type level) to handle these automatically. By using clap we can generate the autocomplete files too.
The text was updated successfully, but these errors were encountered: