Skip to content

Commit

Permalink
modify mkdir option description
Browse files Browse the repository at this point in the history
  • Loading branch information
ddddddO committed Sep 8, 2023
1 parent fcff502 commit de0f986
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
14 changes: 6 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ USAGE:
gtree [global options] command [command options] [arguments...]

VERSION:
1.9.8 / revision c54ad7f
1.9.9 / revision c54ad7f

COMMANDS:
output, o, out Outputs tree from markdown.
Expand Down Expand Up @@ -358,13 +358,11 @@ USAGE:
gtree mkdir [command options] [arguments...]

OPTIONS:
--file value, -f value specify the path to markdown file. (default: stdin)
--dry-run, -d, --dr dry run. detects node that is invalid for directory generation.
the order of the output and made directories does not always match. (default: false)
--extension value, -e value, --ext value [ --extension value, -e value, --ext value ] set this option if you want to create file instead of directory.
for example, if you want to generate files with ".go" extension: "-e .go"
--target-dir value set this option if you want to specify the directory you want to make directory. (default: current directory)
--help, -h show help
--file value, -f value specify the path to markdown file. (default: stdin)
--dry-run, -d dry run. detects node that is invalid for directory generation. the order of the output and made directories does not always match. (default: false)
--extension value, -e value [ --extension value, -e value ] set this option if you want to create file instead of directory. for example, if you want to generate files with ".go" extension: "-e .go"
--target-dir value set this option if you want to specify the directory you want to make directory. (default: current directory)
--help, -h show help
```

#### Try it!
Expand Down
10 changes: 4 additions & 6 deletions cmd/gtree/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,13 @@ func main() {
mkdirFlags := []cli.Flag{
&cli.BoolFlag{
Name: "dry-run",
Aliases: []string{"d", "dr"},
Usage: "dry run. detects node that is invalid for directory generation.\n" +
"the order of the output and made directories does not always match.",
Aliases: []string{"d"},
Usage: "dry run. detects node that is invalid for directory generation. the order of the output and made directories does not always match.",
},
&cli.StringSliceFlag{
Name: "extension",
Aliases: []string{"e", "ext"},
Usage: "set this option if you want to create file instead of directory.\n" +
"for example, if you want to generate files with \".go\" extension: \"-e .go\"",
Aliases: []string{"e"},
Usage: "set this option if you want to create file instead of directory. for example, if you want to generate files with \".go\" extension: \"-e .go\"",
},
&cli.StringFlag{
Name: "target-dir",
Expand Down

0 comments on commit de0f986

Please sign in to comment.