Skip to content
Myr

mention click in deprecation message

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Lord · committed by David Lord · parent cef43de · Browse files · 1 file+3 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−3 removed

  • other:+3 added−3 removed

1 file+3 added−3 removed

modified:src/click/utils.py+3 added-3 removed
343 unmodified lines
344 """Returns the argument part of ``sys.argv``, removing the first345 value which is the name of the script.346347 .. deprecated:: 8.0348 Will be removed in 8.1. Access ``sys.argv[1:]`` directly348 Will be removed in Click 8.1. Access ``sys.argv[1:]`` directly349 instead.350 """351 import warnings352353 warnings.warn(354 "'get_os_args' is deprecated and will be removed in 8.1. Access"355 " 'sys.argv[1:]' directly instead.",354 "'get_os_args' is deprecated and will be removed in Click 8.1."355 " Access 'sys.argv[1:]' directly instead.",356 DeprecationWarning,357 stacklevel=2,358 )359 return sys.argv[1:]
190 unmodified lines