diff --git a/README.md b/README.md index 7bb7f3d..eae5718 100644 --- a/README.md +++ b/README.md @@ -22,11 +22,11 @@ $ nextword -h Nextword prints the most likely English words that follow the stdin sentence. Usage of /Users/moctane/go/bin/nextword: - -Greedy + -g show as many result as possible - -candidate-num int + -c max candidates number (default 100) - -data string + -d string path to the data directory (default "/Users/moctane/Assets/nextword-data") -h show this message -v show version @@ -46,10 +46,6 @@ Example: output: "was would were went with will who wrote when wants ..." ``` -## Contributing - -Please feel free to send pull requests. - ## License MIT \ No newline at end of file diff --git a/main.go b/main.go index 5c500c5..167e596 100644 --- a/main.go +++ b/main.go @@ -10,17 +10,17 @@ import ( ) // Version (semantic) -const Version = "0.0.1" +const Version = "0.0.2" // environmental variable const nextwordDataPath = "NEXTWORD_DATA_PATH" // flags var versionFlag = flag.Bool("v", false, "show version") -var dataPath = flag.String("data", os.Getenv(nextwordDataPath), "path to the data directory") -var candidateNum = flag.Int("candidate-num", 100, "max candidates number") +var dataPath = flag.String("d", os.Getenv(nextwordDataPath), "path to the data directory") +var candidateNum = flag.Int("c", 10, "max candidates number") var helpFlag = flag.Bool("h", false, "show this message") -var greedyFlag = flag.Bool("Greedy", false, "show as many result as possible") +var greedyFlag = flag.Bool("g", false, "show as many result as possible") func main() { if err := run(); err != nil {