Skip to content

Commit bad193a

Browse files
committed
fix: Init bug
--bug=1
1 parent 48809df commit bad193a

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

cmd/aicli/main.go

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,14 @@ var rootCmd = &cobra.Command{
4242
cat file.txt | aicli "统计行数"
4343
aicli --history
4444
aicli --retry 3`,
45-
Version: version,
46-
RunE: run,
45+
Version: version,
46+
RunE: run,
47+
Args: cobra.ArbitraryArgs,
48+
DisableFlagParsing: false,
49+
FParseErrWhitelist: cobra.FParseErrWhitelist{UnknownFlags: false},
50+
SilenceUsage: false,
51+
DisableSuggestions: false,
52+
SuggestionsMinimumDistance: 2,
4753
}
4854

4955
func run(cmd *cobra.Command, args []string) error {

0 commit comments

Comments
 (0)