X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/0f7ebe49c20394d80afb129b29e4afa411347441..2dffd92a117a4f551b10f059786825ff19838d8e:/apps/catalogue/management/commands/__init__.py diff --git a/apps/catalogue/management/commands/__init__.py b/apps/catalogue/management/commands/__init__.py index e6f146f8..d3792afa 100644 --- a/apps/catalogue/management/commands/__init__.py +++ b/apps/catalogue/management/commands/__init__.py @@ -16,15 +16,20 @@ class XmlUpdaterCommand(BaseCommand): In a subclass, provide an XmlUpdater class in the `updater' attribute. """ option_list = BaseCommand.option_list + ( - make_option('-q', '--quiet', action='store_false', dest='verbose', + make_option( + '-q', '--quiet', action='store_false', dest='verbose', default=True, help='Less output'), - make_option('-d', '--dry-run', action='store_true', dest='dry_run', + make_option( + '-d', '--dry-run', action='store_true', dest='dry_run', default=False, help="Don't actually touch anything"), - make_option('-u', '--username', dest='username', metavar='USER', + make_option( + '-u', '--username', dest='username', metavar='USER', help='Assign commits to this user (required, preferably yourself).'), ) args = "[slug]..." + updater = NotImplemented + def handle(self, *args, **options): verbose = options.get('verbose') dry_run = options.get('dry_run')