Commits

Andy Mikhailenko committed 44a7add

Improve docs for argh.interaction

  • Participants
  • Parent commits ee8c9d6

Comments (0)

Files changed (2)

argh/interaction.py

 
     Usage::
 
-        @arg('key')
-        @arg('--silent', help='do not prompt, always give default answers')
-        def delete(args):
+        def delete(key, silent=False):
             item = db.get(Item, args.key)
-            if confirm('Delete '+item.title, default=True, skip=args.silent):
+            if confirm('Delete '+item.title, default=True, skip=silent):
                 item.delete()
                 print('Item deleted.')
             else:

docs/reference.rst

 .. automodule:: argh.dispatching
    :members:
 
+.. automodule:: argh.interaction
+   :members:
+
 .. automodule:: argh.completion
    :members: