【问题标题】:Is there a way to have short names in GFlags?有没有办法在 GFlags 中使用短名称?
【发布时间】:2017-09-25 17:31:21
【问题描述】:

我正在尝试查看 gflags 中是否有办法让 --server_configure 和 --sc 映射到同一个变量。有没有办法为选项设置一个短名称?

【问题讨论】:

  • gflags.DEFINE_string('filename', None, '输入文件名', short_name='f')

标签: gflags


【解决方案1】:

找到答案 gflags.DEFINE_string('filename', None, '输入文件名', short_name='f')

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-12-26
    • 1970-01-01
    • 2015-02-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多