Re:Tools I use: argparse builder
by nvusuvu on Thursday October 08, 2020 @12:26PM
(#24720667)
I use argparse daily. One CLI script I have uses over 1000 LOC to define all the commands/arguments/flags. Am I doing something wrong? Is there a way to unclutter my CLI script but still have the commands? Import them from another file, perhaps?
[ Parent
| on HN ]
As another commenter here mentioned, you might want to consider fire [1], depending on the complexity of your argparse-usage it might check 90% of your boxes for you.