请考虑以下内容:
parser.add_option("-f", "--file", "--secret", action = "append", type = "string", dest = "filename", default = [], help = "specify the files")
当用户调用帮助时,我希望隐藏--secret选项。我能通过以下方式做到吗?
parser.add_option("-f", "--file", action = "append", type = "string", dest = "filename", default = [], help = "specify the files")
parser.add_option("--secret", action = "append", type = "string", dest = "filename", default = [], help = "specify the files")
我这样做会有什么隐藏问题吗?如果有,有人能建议另一种实现方式吗?