Skip to content
Permalink
Browse files

Ok, so that code does do something ;-)

  • Loading branch information
ralsina committed May 18, 2017
1 parent 43cbf69 commit 02bfc27a3b20eae0b843fbdff14786fce8c01669
Showing with 8 additions and 0 deletions.
  1. +8 −0 nikola/__main__.py
@@ -376,6 +376,14 @@ def run(self, cmd_args):
# get "global vars" from cmd-line
args = self.process_args(cmd_args)

# get specified sub-command or use default='run'
if len(args) == 0 or args[0] not in sub_cmds:
specified_run = False
cmd_name = 'run'
else:
specified_run = True
cmd_name = args.pop(0)

# execute command
command = sub_cmds.get_plugin(cmd_name)(
task_loader=self.task_loader,

0 comments on commit 02bfc27

Please sign in to comment.
You can’t perform that action at this time.