Skip to content

Commit 463b99b

Browse files
committedApr 22, 2015
Fix #1656
1 parent d478f86 commit 463b99b

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed
 

‎CHANGES.txt

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Features
1515
Bugfixes
1616
--------
1717

18+
* Don't default to any swatch in bootswatch_theme (Issue #1656)
1819
* Fix ``nikola check -l`` for absolute and full-path URL styles
1920
(Issue #1650)
2021
* Really add missing trailing slashes in ``BASE_URL`` (Issue #1651)

‎nikola/conf.py.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ REDIRECTIONS = ${REDIRECTIONS}
516516
# vim
517517
# vs
518518
# xcode
519-
$ This list MAY be incomplete since pygments adds styles every now and then.
519+
# This list MAY be incomplete since pygments adds styles every now and then.
520520
# CODE_COLOR_SCHEME = 'default'
521521

522522
# If you use 'site-reveal' theme you can select several subthemes

‎nikola/plugins/command/bootswatch_theme.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626

2727
from __future__ import print_function
2828
import os
29+
import sys
2930

3031
try:
3132
import requests
@@ -57,7 +58,7 @@ class CommandBootswatchTheme(Command):
5758
{
5859
'name': 'swatch',
5960
'short': 's',
60-
'default': 'slate',
61+
'default': '',
6162
'type': str,
6263
'help': 'Name of the swatch from bootswatch.com.'
6364
},
@@ -77,6 +78,9 @@ def _execute(self, options, args):
7778

7879
name = options['name']
7980
swatch = options['swatch']
81+
if not swatch:
82+
LOGGER.error('The -s option is mandatory')
83+
sys.exit(1)
8084
parent = options['parent']
8185
version = ''
8286

0 commit comments

Comments
 (0)
Please sign in to comment.