diff options
Diffstat (limited to 'Documentation/gen_commands.py')
-rwxr-xr-x | Documentation/gen_commands.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Documentation/gen_commands.py b/Documentation/gen_commands.py index b85e2e3eab..6251b4f22e 100755 --- a/Documentation/gen_commands.py +++ b/Documentation/gen_commands.py @@ -161,7 +161,11 @@ for name in CMDS.keys(): for name, cmd in CMDS.items(): #pprint({name: cmd}) rst = gen_rst(name, cmd) - subdir = os.path.join(sys.argv[2], cmd['c_group'][0]) + group = cmd.get('c_group') + if group is None: + print >> sys.stderr, "gen_commands: warning: using default group 'misc' for command '%s'" % name + group = ['misc'] + subdir = os.path.join(sys.argv[2], group[0]) try: os.makedirs(subdir) except OSError as e: |