Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

En dash in front of long options in man page #1392

Closed
l0b0 opened this issue Nov 17, 2018 · 0 comments
Closed

En dash in front of long options in man page #1392

l0b0 opened this issue Nov 17, 2018 · 0 comments

Comments

@l0b0
Copy link

l0b0 commented Nov 17, 2018

For bugs

  • My shellcheck version: 0.5.0

Here's a snippet that shows the problem:

$ man shellcheck | grep ''
       -a, –check-sourced
       -C[WHEN], –color[=WHEN]
              For TTY output, enable colors always, never or auto.  The default is auto.  –color without an argument
              is equivalent to –color=always.
       -e CODE1[,CODE2...], –exclude=CODE1[,CODE2...]
       -f FORMAT, –format=FORMAT
       -s shell, –shell=shell
       -V, –version
       -x, –external-sources

Here's what shellcheck currently says:

The long options shown above are prefixed with (en dash). If I copy one of those options verbatim it's treated as a file:

$ shellcheck –check-sourced *.sh 
–check-sourced: –check-sourced: openBinaryFile: does not exist (No such file or directory)

Here's what I wanted or expected to see:

All the long options should be prefixed with -- (two hyphens).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant