Out[2]:
'\nHypothetical command-line tool for searching a collection of\nfiles for one or more text patterns.\n'
Out[2]:
_StoreAction(option_strings=[], dest='filenames', nargs='*', const=None, default=None, type=None, choices=None, help=None, metavar='filename')
Out[2]:
_AppendAction(option_strings=['-p', '--pat'], dest='patterns', nargs=None, const=None, default=None, type=None, choices=None, help='text pattern to search for', metavar='pattern')
Out[2]:
_StoreTrueAction(option_strings=['-v'], dest='verbose', nargs=0, const=True, default=False, type=None, choices=None, help='verbose mode', metavar=None)
Out[2]:
_StoreAction(option_strings=['-o'], dest='outfile', nargs=None, const=None, default=None, type=None, choices=None, help='output file', metavar=None)
Out[2]:
_StoreAction(option_strings=['--speed'], dest='speed', nargs=None, const=None, default='slow', type=None, choices={'slow', 'fast'}, help='search speed', metavar=None)
usage: ipykernel_launcher.py [-h] -p pattern [-v] [-o OUTFILE]
[--speed {slow,fast}]
[filename [filename ...]]
ipykernel_launcher.py: error: the following arguments are required: -p/--pat
An exception has occurred, use %tb to see the full traceback.
SystemExit: 2
/home/autuanliu/softwares/conda/lib/python3.6/site-packages/IPython/core/interactiveshell.py:2870: UserWarning: To exit: use 'exit', 'quit', or Ctrl-D.
warn("To exit: use 'exit', 'quit', or Ctrl-D.", stacklevel=1)