@@ -13,6 +13,7 @@ Options:
1313 -p, --concurrent <number|boolean> The number of tasks to run concurrently, or false for serial
1414 --no-stash Disable the backup stash. Implies "--no-revert".
1515 -q, --quiet Disable lint-staged's own console output
16+ -r, --relative Pass relative filepaths to tasks
1617 -v, --verbose Show task output even when tasks succeed; by default only failed output is shown
1718 -h, --help Display this help message` ;
1819
@@ -26,6 +27,7 @@ export async function runStagedCLI(args: string[]): Promise<void> {
2627 help : { type : 'boolean' , short : 'h' } ,
2728 'no-stash' : { type : 'boolean' } ,
2829 quiet : { type : 'boolean' , short : 'q' } ,
30+ relative : { type : 'boolean' , short : 'r' } ,
2931 verbose : { type : 'boolean' , short : 'v' } ,
3032 } ,
3133 allowPositionals : false ,
@@ -54,6 +56,7 @@ export async function runStagedCLI(args: string[]): Promise<void> {
5456 concurrent : values . concurrent === undefined ? true : JSON . parse ( values . concurrent ) ,
5557 config : stagedConfig ,
5658 quiet : values . quiet ?? false ,
59+ relative : values . relative ?? false ,
5760 stash : ! values [ 'no-stash' ] ,
5861 verbose : values . verbose ?? false ,
5962 } ) ;
0 commit comments