mirror of
https://github.com/nix-community/nixpkgs-update.git
synced 2024-09-11 14:05:43 +03:00
Main: fix update-batch command parser
This commit is contained in:
parent
c9fd42acdc
commit
6a32dda818
@ -57,6 +57,12 @@ updateParser =
|
|||||||
<$> updateOptionsParser
|
<$> updateOptionsParser
|
||||||
<*> O.strArgument (O.metavar "UPDATE_INFO" <> O.help "update string of the form: 'pkg oldVer newVer update-page'\n\n example: 'tflint 0.15.0 0.15.1 repology.org'")
|
<*> O.strArgument (O.metavar "UPDATE_INFO" <> O.help "update string of the form: 'pkg oldVer newVer update-page'\n\n example: 'tflint 0.15.0 0.15.1 repology.org'")
|
||||||
|
|
||||||
|
updateBatchParser :: O.Parser Command
|
||||||
|
updateBatchParser =
|
||||||
|
UpdateBatch
|
||||||
|
<$> updateOptionsParser
|
||||||
|
<*> O.strArgument (O.metavar "UPDATE_INFO" <> O.help "update string of the form: 'pkg oldVer newVer update-page'\n\n example: 'tflint 0.15.0 0.15.1 repology.org'")
|
||||||
|
|
||||||
deleteDoneParser :: O.Parser Command
|
deleteDoneParser :: O.Parser Command
|
||||||
deleteDoneParser =
|
deleteDoneParser =
|
||||||
DeleteDone
|
DeleteDone
|
||||||
@ -73,7 +79,7 @@ commandParser =
|
|||||||
(O.info (updateParser) (O.progDesc "Update one package"))
|
(O.info (updateParser) (O.progDesc "Update one package"))
|
||||||
<> O.command
|
<> O.command
|
||||||
"update-batch"
|
"update-batch"
|
||||||
(O.info (updateParser) (O.progDesc "Update one package in batch mode."))
|
(O.info (updateBatchParser) (O.progDesc "Update one package in batch mode."))
|
||||||
<> O.command
|
<> O.command
|
||||||
"delete-done"
|
"delete-done"
|
||||||
( O.info
|
( O.info
|
||||||
|
Loading…
Reference in New Issue
Block a user