I'm curious about replacing argparse with jsonargparse in some of my projects since simply running CLI(main_fn) would cover my most common use cases. However, it's not clear to me if there's any hook to change the mapping from Python argument names to CLI parameters. Specifically, I typically have multi-word parameters represented with dashes as commandline arguments. So, arg_like_this in Python comes --arg-like-this on the commandline. Is there any way to replicate this behavior with jsonargparse?
Thanks!
I'm curious about replacing argparse with jsonargparse in some of my projects since simply running
CLI(main_fn)would cover my most common use cases. However, it's not clear to me if there's any hook to change the mapping from Python argument names to CLI parameters. Specifically, I typically have multi-word parameters represented with dashes as commandline arguments. So,arg_like_thisin Python comes--arg-like-thison the commandline. Is there any way to replicate this behavior with jsonargparse?Thanks!