Skip to content

Commit

Permalink
Only print unknown arg when there are unkown
Browse files Browse the repository at this point in the history
  • Loading branch information
yhyu13 committed Dec 10, 2023
1 parent 095ce50 commit 09999f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,8 @@
parser.add_argument('--use_fast', action='store_true', help='DEPRECATED')

args, unknown = parser.parse_known_args()
logger.warning(f'Textgen-webui has been provided with unknown arguments: {unknown}')
if unknown:
logger.warning(f'Textgen-webui has been provided with unknown arguments: {unknown}')
args_defaults = parser.parse_args([])
provided_arguments = []
for arg in sys.argv[1:]:
Expand Down

0 comments on commit 09999f1

Please sign in to comment.