#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Spawns an interactive Python shell.

Usage:
    python pwb.py shell [args]

If no arguments are given, the pywikibot library will not be loaded.

The following parameters are supported:

&params;

"""
# (C) Pywikibot team, 2014
#
# Distributed under the terms of the MIT license.
#
__version__ = '$Id$'
#


def main(*args):
    """Script entry point."""
    env = None
    if args:
        import pywikibot
        pywikibot.handle_args(*args)
        env = locals()

    import code
    code.interact("""Welcome to the Pywikibot interactive shell!""", local=env)


if __name__ == "__main__":
    import sys
    args = []
    if set(sys.argv) - set(['shell', 'shell.py']):
        args = sys.argv
    del sys
    main(*args)

#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Spawns an interactive Python shell.

Usage:
    python pwb.py shell [args]

If no arguments are given, the pywikibot library will not be loaded.

The following parameters are supported:

&params;

"""
# (C) Pywikibot team, 2014
#
# Distributed under the terms of the MIT license.
#
__version__ = '$Id$'
#


def main(*args):
    """Script entry point."""
    env = None
    if args:
        import pywikibot
        pywikibot.handle_args(args)
        env = locals()

    import code
    code.interact("""Welcome to the Pywikibot interactive shell!""", local=env)


if __name__ == "__main__":
    import sys
    args = []
    if set(sys.argv) - set(['shell', 'shell.py']):
        args = sys.argv
    del sys
    main(*args)

Use args as one parameter
[FIX] Shell: Use args as one parameter

Change-Id: If96eb33fb24e0e9c23e4bf9f20a65a48da5fc159
