Skip to content

Commit

Permalink
docs: for --read-files
Browse files Browse the repository at this point in the history
  • Loading branch information
harttle committed May 5, 2024
1 parent 02a82e0 commit 11de27e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,15 @@ Options:
--version Show version number [boolean]
--in-place, -i edit file in place [boolean]
--ignore-words, -I ignore padding within/before/after these words [string]
--read-files, -r read a file list containing one file per line, use empty value to read from STDIN [string]
Examples:
stdout md-padding README.md
in-place md-padding -i README.md
pipe cat README.md | md-padding
ignore-words cat README.md | md-padding -I '=' '::'
batch format cat list.txt | md-padding -r -i
equivalent w/ md-padding -r list.txt -i
```

### 在 Vim 中使用
Expand Down
2 changes: 1 addition & 1 deletion src/bin/md-padding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ yargs
.option('read-files', {
alias: 'r',
type: 'string',
description: 'STDIN as file list'
description: 'read a file list containing one file per line, use empty value to read from STDIN'
})
.alias('help', 'h')
.example('stdout', 'mdp README.md')
Expand Down

0 comments on commit 11de27e

Please sign in to comment.