diff --git a/documentation/en/cli-lotus.md b/documentation/en/cli-lotus.md index d617ac68469..cdc95136b67 100644 --- a/documentation/en/cli-lotus.md +++ b/documentation/en/cli-lotus.md @@ -1595,8 +1595,18 @@ OPTIONS: --help, -h show help (default: false) ``` -# nage + +### lotus mpool manage ``` +NAME: + lotus mpool manage - + +USAGE: + lotus mpool manage [command options] [arguments...] + +OPTIONS: + --help, -h show help (default: false) + ``` ## lotus state diff --git a/scripts/generate-lotus-cli.py b/scripts/generate-lotus-cli.py index 1d33687ae60..7999603b277 100644 --- a/scripts/generate-lotus-cli.py +++ b/scripts/generate-lotus-cli.py @@ -31,12 +31,11 @@ def get_cmd_recursively(cur_cmd): if cmd_flag is True and line == '': cmd_flag = False if cmd_flag is True and line[-1] != ':' and 'help, h' not in line: - gap_pos = 0 + gap_pos = None sub_cmd = line if ' ' in line: gap_pos = sub_cmd.index(' ') - if gap_pos: - sub_cmd = cur_cmd + ' ' + sub_cmd[:gap_pos] + sub_cmd = cur_cmd + ' ' + sub_cmd[:gap_pos] get_cmd_recursively(sub_cmd) except Exception as e: print('Fail to deal with "%s" with error:\n%s' % (line, e))