1. Ask Solem Hoel
  2. Flask-Script

Commits

danjac  committed 4fffaa4

doc fixes

  • Participants
  • Parent commits 2f79a4a
  • Branches default

Comments (0)

Files changed (1)

File flaskext/script.py

View file
  • Ignore whitespace
         
         class Print(Command):
 
-            def run(self, app):
+            def run(self):
                 print "hello"
 
         app = Flask(__name__)
 
             manager = Manager(create_app)
             manager.add_option("-c", "--config", dest="config", required=False)
-            
+           
+        and are evoked like this::
+
             > python manage.py -c dev.cfg mycommand
 
         Any manager options passed in the command line will not be passed to