Skip to content

Commit bf6fea9

Browse files
committed
prefixpath --> prefix
1 parent ca5187c commit bf6fea9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/Main.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import MyLib (someFunc)
44
import Options.Applicative
55

66
data Sample = Sample
7-
{ prefixPath :: String,
7+
{ prefix :: String,
88
src :: String,
99
dst :: String
1010
}
@@ -13,7 +13,7 @@ sample :: Parser Sample
1313
sample =
1414
Sample
1515
<$> strOption
16-
( long "prefixpath"
16+
( long "prefix"
1717
<> value ""
1818
<> help "prefix path of webserver"
1919
)
@@ -27,8 +27,8 @@ sample =
2727
)
2828

2929
greet :: Sample -> IO ()
30-
greet (Sample prefixPath src dst) = do
31-
_ <- someFunc prefixPath src dst
30+
greet (Sample prefix src dst) = do
31+
_ <- someFunc prefix src dst
3232
return ()
3333

3434
main :: IO ()

0 commit comments

Comments
 (0)