How to pass options?
See original GitHub issueHey there,
I was wondering how to pass options to lint-staged as there doesn’t appear to be an example in the README.
In particular I’m doing:
"precommit": "lint-staged --verbose",
but nothing different appears to be happening with the --verbose
flag so maybe I’m just not using it correctly?
Thanks!
Issue Analytics
- State:
- Created 6 years ago
- Comments:11 (7 by maintainers)
Top Results From Across the Web
Adding arguments and options to your Bash scripts - Red Hat
The ability to use positional parameters—otherwise known as arguments—to specify data to be used as values for variables in the scripts is one ......
Read more >Parameters / Arguments - Windows CMD - SS64.com
How-to: Pass Command Line arguments (Parameters) to a Windows batch file. A command line argument (or parameter) is any value passed into a...
Read more >Command Line Arguments in Python - GeeksforGeeks
Options that require arguments should be followed by an equal sign (=). ... Pass list as command line argument in Python.
Read more >How to Use Command Line Arguments in a Bash Script
We've previously examined how to pass command-line arguments to a bash script. In this tutorial, we'll take a look at how we can...
Read more >Python - Command Line Arguments - Tutorialspoint
This method getopt.getopt() returns value consisting of two elements: the first is a list of (option, value) pairs. The second is the list...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Okay I got it. You simply add it to the same block. I was confused because the output makes you believe it interpretes the
gitDir
as pattern:Hey @okonet , I did see that - definitely nice to have a list of what options are available. As for actually using an option though, I’m still unclear on what the correct method is. Did I do it correctly here:
"precommit": "lint-staged --verbose",
?Thanks!