'How to escape dash in jq call

How to escape dash in jq call?

cat afile | jq -r .commit-sha1

So the dash is being interpreted in some way. How to escape it? I tried wrap with "

jq


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source