Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 optparse 时是否有一种巧妙的方法来修改“-h”输出?基本上,除了输出的“免费赠品”使用说明之外,我还想添加大量附加文本。
或者这完全是错误的做法?
optparse.OptionParser -请参阅参数说明usage和。progepilog
usage
prog
epilog