The main() function currently uses the following code to switch between the
argv passed versus sys.argv:
argv = argv or list(sys.argv[1:])
This should be:
argv = argv if argv is not None else list(sys.argv[1:])
So that when an empty list is passed (argv=[]), it will consider no command to
have been selected, as opposed to whatever might be in sys.argv.
I ran across this while integrating the migrate command into a parent parser.
Original issue reported on code.google.com by elsdoer...@gmail.com on 24 Aug 2010 at 12:12
Original issue reported on code.google.com by
elsdoer...@gmail.com
on 24 Aug 2010 at 12:12