@@ -2454,27 +2454,27 @@ configSet =
24542454 { patternName = " config.set" ,
24552455 aliases = [] ,
24562456 visibility = I. Visible ,
2457- params = Parameters [(" key" , configKeyArg)] $ OnePlus (" value" , noCompletionsArg),
2457+ params = Parameters [(" key" , configKeyArg), (" value" , noCompletionsArg)] $ Optional [] Nothing ,
24582458 help =
24592459 P. lines
24602460 [ P. wrap $
24612461 " The"
24622462 <> makeExample' configSet
24632463 <> " command sets the configuration key to the provided value. E.g." ,
24642464 " " ,
2465- (makeExample configSet [P. text $ Config. keyToText Config. AuthorNameKey , " Author Name" ]),
2465+ (makeExample configSet [P. text $ Config. keyToText Config. AuthorNameKey , " \" Author Name\" " ]),
24662466 " " ,
24672467 P. hang
24682468 " Configuration options include:"
24692469 (P. wrap . P. text $ Text. intercalate " , " $ Config. allKeysText)
24702470 ],
24712471 parse = \ case
2472- (key : values ) -> do
2472+ (key : value : [] ) -> do
24732473 key' <- unsupportedStructuredArgument configSet " a config key" key
2474- values ' <- for values ( unsupportedStructuredArgument configSet " a config value" )
2474+ value ' <- unsupportedStructuredArgument configSet " a config value" value
24752475 case Config. keyFromText (Text. pack key') of
24762476 Nothing -> Left . P. text $ " I don't recognize that config key. Available keys are: " <> Text. intercalate " , " Config. allKeysText
2477- Just pkey -> Right $ Input. ConfigSetI pkey (Text. pack $ unwords values ')
2477+ Just pkey -> Right $ Input. ConfigSetI pkey (Text. pack value ')
24782478 args -> wrongArgsLength " exactly two arguments" args
24792479 }
24802480
0 commit comments