1. Andy Mikhailenko
  2. argh

Commits

Andy Mikhailenko  committed 1ae1530

Update readme

  • Participants
  • Parent commits 52d3740
  • Branches default

Comments (0)

Files changed (1)

File README

View file
  • Ignore whitespace
 
 .. code-block:: python
 
-    from argh import *
+    import argh
 
     def main():
         return 'Hello world'
 
-    dispatch_command(main)
+    argh.dispatch_command(main)
 
 A potentially modular application with multiple commands:
 
 .. code-block:: python
 
+    import argh
+
     # declaring:
 
     def echo(text):
 
     # assembling:
 
-    parser = ArghParser()
+    parser = argh.ArghParser()
     parser.add_commands([echo, greeter])
 
     # dispatching: