add the recently added commands to the readline command-line-completion list; fix command-line documentation bug, closing issue #188

This commit is contained in:
Lincoln Stein 2022-08-29 22:34:09 -04:00
parent d48299e56c
commit 42ffcd7204
2 changed files with 22 additions and 27 deletions

View File

@ -86,32 +86,27 @@ if readline_available:
readline.set_completer( readline.set_completer(
Completer( Completer(
[ [
'cd', '--steps','-s',
'pwd', '--seed','-S',
'--steps', '--iterations','-n',
'-s', '--batch_size','-b',
'--seed', '--width','-W','--height','-H',
'-S', '--cfg_scale','-C',
'--iterations', '--grid','-g',
'-n', '--individual','-i',
'--batch_size', '--init_img','-I',
'-b', '--strength','-f',
'--width', '--variants','-v',
'-W', '--outdir','-o',
'--height', '--sampler','-A','-m',
'-H', '--embedding_path',
'--cfg_scale', '--device',
'-C', '--grid','-g',
'--grid', '--gfpgan_strength','-G',
'-g', '--upscale','-U',
'--individual', '-save_orig','--save_original',
'-i', '--skip_normalize','-x',
'--init_img', '--log_tokenization','t',
'-I',
'--strength',
'-f',
'-v',
'--variants',
] ]
).complete ).complete
) )

View File

@ -437,7 +437,7 @@ def create_cmd_parser():
'--cfg_scale', '--cfg_scale',
default=7.5, default=7.5,
type=float, type=float,
help='Prompt configuration scale', help='Classifier free guidance (CFG) scale - higher numbers cause generator to "try" harder.',
) )
parser.add_argument( parser.add_argument(
'-g', '--grid', action='store_true', help='generate a grid' '-g', '--grid', action='store_true', help='generate a grid'