support cmdnorepo actions, also using getopt-applicative there
This commit is contained in:
parent
6e5c1f8db3
commit
92d8f80bff
10 changed files with 54 additions and 68 deletions
|
@ -22,9 +22,12 @@ import qualified Command.Fsck
|
|||
import System.Console.GetOpt
|
||||
|
||||
cmd :: Command
|
||||
cmd = noCommit $ noRepo startNoRepo $ dontCheck repoExists $
|
||||
command "help" SectionCommon "display help"
|
||||
"COMMAND" (withParams seek)
|
||||
cmd = noCommit $ dontCheck repoExists $
|
||||
noRepo (parseparams startNoRepo) $
|
||||
command "help" SectionCommon "display help"
|
||||
"COMMAND" (parseparams seek)
|
||||
where
|
||||
parseparams = withParams
|
||||
|
||||
seek :: CmdParams -> CommandSeek
|
||||
seek = withWords start
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue