<s> from django . core . management . base import BaseCommand <EOL> from wq . db import rest <EOL> import json <EOL> from optparse import make_option <EOL> class Command ( BaseCommand ) : <EOL> def __init__ ( self , * args , ** kwargs ) : <EOL> super ( Command , self ) . __init__ ( * args , ** kwargs ) <EOL> self . option_list += ( make_option ( <EOL> '<STR_LIT>' , default = '<STR_LIT>' <EOL> ) , ) <EOL> def handle ( self , * args , ** options ) : <EOL> text = json . dumps ( <EOL> rest . router . get_config ( ) , <EOL> indent = <NUM_LIT:4> , <EOL> ) <EOL> if options [ '<STR_LIT>' ] == "<STR_LIT>" : <EOL> text = "<STR_LIT>" % text <EOL> self . stdout . write ( text ) </s>
