Unverified Commit 1d320e8a authored by Oleg Grenrus's avatar Oleg Grenrus Committed by GitHub
Browse files

Merge pull request #7089 from acairncross/deduplicate-description

Fix command notes being replaced by descriptions
parents f5f8d933 af291cca
......@@ -138,7 +138,7 @@ newCmd origUi@CommandUI{..} action = [cmd defaultUi, cmd newUi, cmd origUi]
{ commandName = newMsg commandName
, commandUsage = newMsg . commandUsage
, commandDescription = (newMsg .) <$> commandDescription
, commandNotes = (newMsg .) <$> commandDescription
, commandNotes = (newMsg .) <$> commandNotes
}
defaultMsg = T.unpack . T.replace "v2-" "" . T.pack
......@@ -146,5 +146,5 @@ newCmd origUi@CommandUI{..} action = [cmd defaultUi, cmd newUi, cmd origUi]
{ commandName = defaultMsg commandName
, commandUsage = defaultMsg . commandUsage
, commandDescription = (defaultMsg .) <$> commandDescription
, commandNotes = (defaultMsg .) <$> commandDescription
, commandNotes = (defaultMsg .) <$> commandNotes
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment