diff options
author | German M. Bravo <german.mb@deipi.com> | 2012-01-09 18:14:16 -0600 |
---|---|---|
committer | German M. Bravo <german.mb@deipi.com> | 2012-01-09 18:14:16 -0600 |
commit | a5cfacc4769ee6a85cf5e6285f3ff6743c74e791 (patch) | |
tree | 601a7be45c75de220d4debbbb9bb34ffcd802736 | |
parent | 0d5c056caa1cacebea7402f6ad3b48dbe9ce8f28 (diff) | |
download | pyscss-a5cfacc4769ee6a85cf5e6285f3ff6743c74e791.tar.gz |
Added --debug-info command option
-rw-r--r-- | CHANGELOG | 4 | ||||
-rw-r--r-- | README.rst | 7 | ||||
-rw-r--r-- | scss/__init__.py | 11 |
3 files changed, 19 insertions, 3 deletions
@@ -1,6 +1,9 @@ Changelog ========= +1.1.4 ??? + + Added ``--debug-info`` command line option + 1.1.3 Jan 9, 2012 + Support for the new Sass 3.2.0 features (@content and placeholder selectors) + Fixed bug with line numbers throwing an exception. @@ -29,4 +32,3 @@ Changelog 1.0.8 - May 13, 2011 + Changed source color ($src-color) default to black. + Moved the module filename to __init__.py and module renamed back to scss. - @@ -5,6 +5,8 @@ pyScss, a Scss compiler for Python About ===== +.. include:: <DESCRIPTION> + pyScss compiles Scss (Sass), a superset of CSS that is more powerful, elegant and easier to maintain than plain-vanilla CSS. The library acts as a CSS source code preprocesor which allows you to use variables, nested rules, mixins, and @@ -269,15 +271,20 @@ If you have any suggestions, bug reports or annoyances please report them to the issue tracker at http://github.com/Kronuz/pyScss/issues +.. include:: <CHANGELOG> + + Contributing ============ Development of pyScss happens at github: https://github.com/Kronuz/pyScss + License ======= MIT License. See *LICENSE* for details. http://www.opensource.org/licenses/mit-license.php + Copyright ========= Copyright (c) 2012 German M. Bravo (Kronuz) diff --git a/scss/__init__.py b/scss/__init__.py index 2a69fca..ad4db11 100644 --- a/scss/__init__.py +++ b/scss/__init__.py @@ -5158,6 +5158,11 @@ def main(): help="Write output to PATH (a directory if using watch, a file otherwise)") parser.add_option("--time", action="store_true", help="Display compliation times") + parser.add_option("--debug-info", action="store_true", + help="Turns on scss's debuging information") + parser.add_option("--no-debug-info", action="store_false", + dest="debug_info", default=False, + help="Turns off scss's debuging information") parser.add_option("-t", "--test", action="store_true", help=SUPPRESS_HELP) parser.add_option("-C", "--no-compress", action="store_false", dest="compress", default=True, @@ -5342,7 +5347,8 @@ def main(): def __init__(self, *args, **kwargs): super(ScssEventHandler, self).__init__(*args, **kwargs) self.css = Scss(scss_opts={ - 'compress': options.compress + 'compress': options.compress, + 'debug_info': options.debug_info, }) self.output = options.output @@ -5406,7 +5412,8 @@ def main(): output = sys.stdout css = Scss(scss_opts={ - 'compress': options.compress + 'compress': options.compress, + 'debug_info': options.debug_info, }) if args: for path in args: |