saeed199024 / cssjanus

Automatically exported from code.google.com/p/cssjanus
Apache License 2.0
0 stars 0 forks source link

swap_left_right_in_url does not work in latest version #11

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Switching strings inside file names does not work with the latest trunk
version of cssjanus.py. Here is why:

At the end of cssjanus.py:
    opts, args = getopt.getopt(argv, 'hd', ['help', 'debug',
                                            'swap_left_right_in_url=',
                                            'swap_ltr_rtl_in_url='])

Those "="-signs at the end of the strings shouldn't be there. Removing them
makes things work again.

Original issue reported on code.google.com by EmilStenstrom on 29 Jun 2009 at 9:34

GoogleCodeExporter commented 9 years ago
Ok, I should have read the manual first: 

"Long options which require an argument should be followed by an equal sign 
('=')"
http://docs.python.org/library/getopt.html

But that does not correspond to the --help printout:

"--swap_left_right_in_url: Fixes "left"/"right" string within urls.
  Ex: ./cssjanus.py --swap_left_right_in_url < file.css > file_rtl.css"

--swap_left_right_in_url does not seem to take any argument there...

Original comment by EmilStenstrom on 29 Jun 2009 at 11:31

GoogleCodeExporter commented 9 years ago
Attached is a fix:
* removes the stray '=' prefix from the devs
* adds the missing '--' prefix from the checks

Now works for me on Mac OS X 10.5, Python 2.5.1.

Original comment by brion.vi...@gmail.com on 22 Aug 2009 at 10:37

Attachments:

GoogleCodeExporter commented 9 years ago
This has been solved for quite a while, but isn't yet in the trunk - is anyone 
actively maintaining this project?

Original comment by steve.ca...@yahoo.com on 15 Jun 2010 at 7:15