diff options
Diffstat (limited to 'Command/TestRemote.hs')
-rw-r--r-- | Command/TestRemote.hs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Command/TestRemote.hs b/Command/TestRemote.hs index cbd2edaf1..250c6f41a 100644 --- a/Command/TestRemote.hs +++ b/Command/TestRemote.hs @@ -38,13 +38,14 @@ import qualified Data.Map as M cmd :: Command cmd = withOptions [sizeOption] $ - command "testremote" paramRemote seek SectionTesting - "test transfers to/from a remote" + command "testremote" SectionTesting + "test transfers to/from a remote" + paramRemote (withParams seek) sizeOption :: Option sizeOption = fieldOption [] "size" paramSize "base key size (default 1MiB)" -seek :: CommandSeek +seek :: CmdParams -> CommandSeek seek ps = do basesz <- fromInteger . fromMaybe (1024 * 1024) <$> getOptionField sizeOption (pure . getsize) |