Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
csscom
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Taddeüs Kroes
csscom
Commits
fcfc3ab1
Commit
fcfc3ab1
authored
Dec 31, 2012
by
Taddeüs Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improved some usage messages
parent
614560b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
csscom.py
csscom.py
+4
-3
No files found.
csscom.py
View file @
fcfc3ab1
...
...
@@ -24,7 +24,7 @@ def compress_css(css, combine_blocks=True, compress_whitespace=True,
def
parse_options
():
parser
=
ArgumentParser
(
description
=
'Just another CSS compressor.'
)
parser
.
add_argument
(
'files'
,
metavar
=
'FILE'
,
nargs
=
'+'
,
help
=
'
list of
CSS files to compress'
)
help
=
'CSS files to compress'
)
parser
.
add_argument
(
'-cw'
,
'--compress-whitespace'
,
action
=
'store_true'
,
help
=
'omit unnecessary whitespaces and semicolons'
)
parser
.
add_argument
(
'-cc'
,
'--compress-color'
,
action
=
'store_true'
,
...
...
@@ -43,8 +43,9 @@ def parse_options():
help
=
'don
\
'
t apply any compression, just generate CSS'
)
parser
.
add_argument
(
'-ns'
,
'--no-sort'
,
action
=
'store_false'
,
dest
=
'sort_properties'
,
help
=
'sort property names'
)
parser
.
add_argument
(
'-o'
,
'--output'
,
help
=
'filename for compressed '
'output (default is stdout)'
)
parser
.
add_argument
(
'-o'
,
'--output'
,
metavar
=
'FILE'
,
help
=
'filename for compressed output (default is '
'stdout)'
)
args
=
parser
.
parse_args
()
# Enable all compression options if none are explicitely enabled
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment