Skip to content

Commit

Permalink
更改默认输出文件名称
Browse files Browse the repository at this point in the history
  • Loading branch information
No-Github committed Sep 21, 2022
1 parent ce20df4 commit 7784fc5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ CONFIGURATIONS:
# 对已知员工列表进行字典生成,指定输出到 /tmp/out.txt 中
./gendict -name test.txt -nameout /tmp/out.txt

# 提供一个已知用户名列表
./gendict -list username.txt

# 提供一个已知用户名列表,使用自定义后缀列表
./gendict -list username.txt -suffix passuffix.txt
```
Expand Down
6 changes: 3 additions & 3 deletions mod/flag.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ func init() {
flag.StringVar(&Org, "org", "", "组织名称列表")
flag.StringVar(&Name, "name", "", "用户名称列表")
flag.StringVar(&List, "list", "", "批量拼接后缀")
flag.StringVar(&Orgout, "orgout", "output/org.txt", "组织名称结果输出")
flag.StringVar(&Nameout, "nameout", "output/name.txt", "用户名称结果输出")
flag.StringVar(&Listout, "listout", "output/list.txt", "批量拼接结果输出")
flag.StringVar(&Orgout, "orgout", "orgresult.txt", "组织名称结果输出")
flag.StringVar(&Nameout, "nameout", "nameresult.txt", "用户名称结果输出")
flag.StringVar(&Listout, "listout", "listresult.txt", "批量拼接结果输出")
flag.StringVar(&Suffix, "suffix", "suffix.txt", "自定义后缀")

}

0 comments on commit 7784fc5

Please sign in to comment.