put data in subdirs by artist
This commit is contained in:
parent
488a4cdd08
commit
9e9d2d83b7
4 changed files with 17 additions and 13 deletions
|
@ -12,9 +12,10 @@ data Options =
|
|||
|
||||
data ModeOptions =
|
||||
SinglePage {
|
||||
file :: FilePath,
|
||||
nsfw :: Bool,
|
||||
output :: Maybe FilePath
|
||||
file :: FilePath,
|
||||
dataDir :: FilePath,
|
||||
nsfw :: Bool,
|
||||
output :: Maybe FilePath
|
||||
}
|
||||
| GalleryPage {
|
||||
files :: [FilePath],
|
||||
|
@ -65,7 +66,7 @@ optionsParser = globalOpts `info` mainInfo where
|
|||
single <> gallery <> index <> rss <> dependSingle <> dependGallery
|
||||
|
||||
single = command "single" $ singleOpts `info` singleInfo
|
||||
singleOpts = SinglePage <$> file <*> nsfwS <*> output
|
||||
singleOpts = SinglePage <$> file <*> dataDir <*> nsfwS <*> output
|
||||
file = strArgument $
|
||||
metavar "FILE" <> help "yaml file to read"
|
||||
nsfwS = switch $
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue