我目前正在迁移一个带有一些奇怪命令行参数的旧应用程序。在使用 Boost program_options 时,我尝试保留旧版本应用程序中的一些参数,以确保某些用户脚本的兼容性。
我的问题是我找不到添加两个或更多字符的速记选项的方法。
例如,如果我添加:
("testOption,to", "This is just a test-option")
Run Code Online (Sandbox Code Playgroud)
对于options_description,我只得到-t 作为--testOption 的简写。
有什么方法可以使用更长的速记选项吗?