[django] CommandParser still requires cmd argument in 2.0
Same as in 1.11, different in 2.1
@@ -85,11 +85,8 @@ def entry():
if len(sys.argv) > 1:
subcommand = sys.argv[1]
- if sys.version_info[0] < 3:
- args = [None]
- else:
- args = []
- parser = CommandParser(*args, usage="%(prog)s subcommand [options] [args]", add_help=False)
+
+ parser = CommandParser(None, usage="%(prog)s subcommand [options] [args]", add_help=False)
parser.parse_known_args(sys.argv[2:])
if len(sys.argv) > 1:
