11
11
12
12
There are options as well:
13
13
14
- .. option:: -s <style>, --output -style <style>
14
+ .. option:: -t <style>, --style <style>
15
15
16
16
Coding style of the compiled result. The same as :func:`sass.compile()`
17
17
function's ``output_style`` keyword argument. Default is ``nested``.
18
18
19
+ .. option:: -s <style>, --output-style <style>
20
+
21
+ Alias for -t / --style.
22
+
23
+ .. deprecated:: 0.11.0
24
+
19
25
.. option:: -I <dir>, --include-path <dir>
20
26
21
27
Optional directory path to find ``@import``\ ed (S)CSS files.
@@ -72,10 +78,14 @@ def main(argv=sys.argv, stdout=sys.stdout, stderr=sys.stderr):
72
78
)
73
79
output_styles = list (OUTPUT_STYLES )
74
80
output_styles = ', ' .join (output_styles [:- 1 ]) + ', or ' + output_styles [- 1 ]
75
- parser .add_option ('-s' , '--output-style' , metavar = 'STYLE' , type = 'choice' ,
76
- choices = list (OUTPUT_STYLES ), default = 'nested' ,
77
- help = 'Coding style of the compiled result. Choose one '
78
- 'of ' + output_styles + '. [default: %default]' )
81
+ parser .add_option (
82
+ '-t' , '--style' , '-s' , '--output-style' , metavar = 'STYLE' ,
83
+ type = 'choice' , choices = list (OUTPUT_STYLES ), default = 'nested' ,
84
+ help = (
85
+ 'Coding style of the compiled result. Choose one of ' +
86
+ output_styles + '. [default: %default]'
87
+ ),
88
+ )
79
89
parser .add_option ('-m' , '-g' , '--sourcemap' , dest = 'source_map' ,
80
90
action = 'store_true' , default = False ,
81
91
help = 'Emit source map. Requires the second argument '
@@ -123,7 +133,7 @@ def main(argv=sys.argv, stdout=sys.stdout, stderr=sys.stderr):
123
133
source_map_filename = args [1 ] + '.map' # FIXME
124
134
css , source_map = compile (
125
135
filename = filename ,
126
- output_style = options .output_style ,
136
+ output_style = options .style ,
127
137
source_map_filename = source_map_filename ,
128
138
include_paths = options .include_paths ,
129
139
precision = options .precision
@@ -133,7 +143,7 @@ def main(argv=sys.argv, stdout=sys.stdout, stderr=sys.stderr):
133
143
source_map = None
134
144
css = compile (
135
145
filename = filename ,
136
- output_style = options .output_style ,
146
+ output_style = options .style ,
137
147
include_paths = options .include_paths ,
138
148
precision = options .precision
139
149
)
0 commit comments