Commit 8806986b authored by Luke Macken's avatar Luke Macken

PEP8

parent 85e816c6
......@@ -26,11 +26,15 @@ def main():
epilog="For updates, visit https://github.com/lmacken/pyrasite"
)
parser.add_argument('pid', help="The ID of the process to inject code into")
parser.add_argument('filename', default=None, nargs='?', help="The second argument must be a filename")
parser.add_argument('--gdb-prefix', dest='gdb_prefix', help='GDB prefix (if specified during installation)', default="")
parser.add_argument('--verbose', dest='verbose', help='Verbose mode', default=False, action='store_const', const=True)
if len(sys.argv)==1:
parser.add_argument('filename', default=None, nargs='?',
help="The second argument must be a filename")
parser.add_argument('--gdb-prefix', dest='gdb_prefix',
help='GDB prefix (if specified during installation)',
default="")
parser.add_argument('--verbose', dest='verbose', help='Verbose mode',
default=False, action='store_const', const=True)
if len(sys.argv) == 1:
parser.print_help()
sys.exit(1)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment