【发布时间】:2017-05-23 09:25:22
【问题描述】:
在 Yesod 书中 https://www.yesodweb.com/book/scaffolding-and-the-site-template 给出的命令就像 'stack exec — yesod --help' 和 'stack exec — yesod devel' 但是那个'-'符号是什么(我只能复制/粘贴它),它的含义是什么?
【问题讨论】:
标签: yesod
在 Yesod 书中 https://www.yesodweb.com/book/scaffolding-and-the-site-template 给出的命令就像 'stack exec — yesod --help' 和 'stack exec — yesod devel' 但是那个'-'符号是什么(我只能复制/粘贴它),它的含义是什么?
【问题讨论】:
标签: yesod
它被称为破折号(and how to create it on your keyboard)。在与 Yesod 一起使用的情况下,我有点不清楚是否有意使用 em dash。某些程序(如 Microsoft Word)会自动将两个连字符 (--) 转换为 em 破折号。我认为这可能就是在这种情况下发生的事情——因为在 GitHub 上,is a post 使用了命令 stack exec -- yesod devel。这将与连字符的典型命令行用法更一致 - the single and double hyphens are supposed to have specific/standard meaning when used in command line utilities。
【讨论】: