@@ -1624,6 +1624,7 @@ instance Semigroup GetFlags where
1624
1624
data ListFlags = ListFlags {
1625
1625
listInstalled :: Flag Bool ,
1626
1626
listSimpleOutput :: Flag Bool ,
1627
+ listExactMatch :: Flag Bool ,
1627
1628
listVerbosity :: Flag Verbosity ,
1628
1629
listPackageDBs :: [Maybe PackageDB ]
1629
1630
} deriving Generic
@@ -1632,6 +1633,7 @@ defaultListFlags :: ListFlags
1632
1633
defaultListFlags = ListFlags {
1633
1634
listInstalled = Flag False ,
1634
1635
listSimpleOutput = Flag False ,
1636
+ listExactMatch = Flag False ,
1635
1637
listVerbosity = toFlag normal,
1636
1638
listPackageDBs = []
1637
1639
}
@@ -1667,6 +1669,10 @@ listCommand = CommandUI {
1667
1669
" Print in a easy-to-parse format"
1668
1670
listSimpleOutput (\ v flags -> flags { listSimpleOutput = v })
1669
1671
trueArg
1672
+ , option [] [" exact" ]
1673
+ " Print only exact match"
1674
+ listExactMatch (\ v flags -> flags { listExactMatch = v })
1675
+ trueArg
1670
1676
1671
1677
, option " " [" package-db" ]
1672
1678
( " Append the given package database to the list of package"
0 commit comments