Fix command-line argument style (use dashes instead of underscores)

This commit is contained in:
caryoscelus 2024-01-17 21:18:15 +00:00
parent 031dd1946f
commit f3c57cdc32
No known key found for this signature in database
GPG key ID: 254EDDB85B66CB1F
8 changed files with 12 additions and 12 deletions

View file

@ -247,7 +247,7 @@ class SitePlugin(object):
class ConfigPlugin(object):
def createArguments(self):
group = self.parser.add_argument_group("OptionalManager plugin")
group.add_argument('--optional_limit', help='Limit total size of optional files', default="10%", metavar="GB or free space %")
group.add_argument('--optional_limit_exclude_minsize', help='Exclude files larger than this limit from optional size limit calculation', default=20, metavar="MB", type=int)
group.add_argument('--optional-limit', help='Limit total size of optional files', default="10%", metavar="GB or free space %")
group.add_argument('--optional-limit-exclude-minsize', help='Exclude files larger than this limit from optional size limit calculation', default=20, metavar="MB", type=int)
return super(ConfigPlugin, self).createArguments()