X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/31006b86a2e9883d8a4c5fe18128821b325773ab..1169680a2dc27e43acea2772e26e62ea063941a8:/apps/build/management/commands/build.py diff --git a/apps/build/management/commands/build.py b/apps/build/management/commands/build.py index f0d1df8f..9afc2498 100644 --- a/apps/build/management/commands/build.py +++ b/apps/build/management/commands/build.py @@ -12,37 +12,32 @@ from django.core.management import call_command class Command(BaseCommand): - - option_list = BaseCommand.option_list + ( - make_option( + + def add_arguments(self, parser): + parser.add_argument( '--node-bin-path', action='store', dest='node_bin_path', - type='string', default=None, - help='Path to node binary'), - make_option( + help='Path to node binary') + parser.add_argument( '--npm-bin', action='store', dest='npm_bin', - type='string', default='npm', - help='Path to npm binary'), - make_option( + help='Path to npm binary') + parser.add_argument( '--editor-npm-env', action='store', dest='editor_npm_env', - type='string', default=None, - help='Destination path of npm environment, defaults to ./node_modules'), - make_option( + help='Destination path of npm environment, defaults to ./node_modules') + parser.add_argument( '--editor-optimize', action='store', dest='editor_optimize', - type='string', default=None, - help='Optimization strategy for editor build'), - ) + help='Optimization strategy for editor build') def handle(self, **options): wiki_base_dir = os.path.join(os.getcwd(), 'apps', 'wiki', 'static', 'wiki')