Commits

Andy Mikhailenko  committed e646370

Removed redundant examples from the documentation.

  • Participants
  • Parent commits 8001f1e

Comments (0)

Files changed (1)

File argh/helpers.py

 
     This::
 
-        @command
-        def foo():
-            return 1
-
         dispatch_command(foo)
 
     ...is a shortcut for::
 
-        @command
-        def foo():
-            return 1
-
         parser = ArghParser()
         parser.set_default_command(foo)
         parser.dispatch()
 
     This::
 
-        @command
-        def foo():
-            return 1
-
-        def bar(args):
-            return 1
-
         dispatch_commands([foo, bar])
 
     ...is a shortcut for::
 
-        @command
-        def foo():
-            return 1
-
-        def bar(args):
-            return 1
-
         parser = ArgumentParser()
         parser.add_commands(parser, [foo, bar])
         parser.dispatch(parser)