Skip to content

Commit

Permalink
Ok, so that code does do something ;-)
Browse files Browse the repository at this point in the history
  • Loading branch information
Roberto Alsina committed May 18, 2017
1 parent 43cbf69 commit 02bfc27
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions nikola/__main__.py
Expand Up @@ -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,
Expand Down

0 comments on commit 02bfc27

Please sign in to comment.