Skip to content

Commit

Permalink
doc: Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Mar 10, 2023
1 parent 53139d3 commit c9b4048
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,23 @@ $ npm install --global chmod-cli
```bash
$ chmod-cli --help

A simple Node.js module for changing file permissions.
A simple command line tool for changing file permissions.

Usage: $ chmod-cli <path>

Options:
--mode, -m The new permissions for the file or directory.
This can be a numeric mode (e.g. 666),
or a string mode (e.g. 'rwxr-xr-x')


--version, -v Show version number
--help, -h Displays help information.
--mode, -m The new permissions for the file or directory.
This can be a numeric mode (e.g. 666),
or a string mode (e.g. 'rwxr-xr-x')

Examples:
$ chmod-cli test.js xxx.js -m 777
$ chmod-cli test.js -m 777
$ chmod-cli test.js -m 777

$ chmod-cli test.js xxx.js -m 0o777
$ chmod-cli test.js -m 0o777
$ chmod-cli test.js -m 0o777

```

Expand Down

0 comments on commit c9b4048

Please sign in to comment.