Changeset 720:a7f242d1df22 in hatta-dev


Ignore:
Timestamp:
01/05/10 17:54:37 (2 years ago)
Author:
sheep@…
Branch:
default
Message:

remove defaults from boolean options in optparse, so that they won't override options passed in the config object

File:
1 edited

Legend:

Unmodified
Added
Removed
  • hatta.py

    r719 r720  
    172172        add('-l', '--language', dest='language', 
    173173            help='Translate interface to LANG', metavar='LANG') 
    174         add('-r', '--read-only', dest='read_only', default=False, 
     174        add('-r', '--read-only', dest='read_only', 
    175175            help='Whether the wiki should be read-only', action="store_true") 
    176176        add('-g', '--icon-page', dest='icon_page', metavar="PAGE", 
    177177            help='Read icons graphics from PAGE.') 
    178         add('-w', '--hgweb', dest='hgweb', default=False, 
     178        add('-w', '--hgweb', dest='hgweb', 
    179179            help='Enable hgweb access to the repository', action="store_true") 
    180         add('-W', '--wiki-words', dest='wiki_words', default=False, 
     180        add('-W', '--wiki-words', dest='wiki_words', 
    181181            help='Enable WikiWord links', action="store_true") 
    182         add('-I', '--ignore-indent', dest='ignore_indent', default=False, 
     182        add('-I', '--ignore-indent', dest='ignore_indent', 
    183183            help='Treat indented lines as normal text', action="store_true") 
    184184        add('-P', '--pygments-style', dest='pygments_style', 
Note: See TracChangeset for help on using the changeset viewer.