f885e82bb1bb — Dang Hoang Tuan (Tsuki) 1 year, 11 months ago
Fix a bug in the CLI where the port default is handled incorrectly, resulted in a wrong --port flag
1 files changed, 1 insertions(+), 1 deletions(-)

M main.go
M main.go +1 -1
@@ 8,7 8,7 @@ import (
 
 type Flags struct {
   cli.Helper
-  Port int `cli:"p,port" usage:"Port number (default is 1323)" dft:1323`
+  Port int `cli:"p,port" usage:"Port number (default is 1323)" dft:"1323"`
   Directory string `cli:"d,dir" usage:"Directory to display (default is .)" dft:"."`
 }