Skip to content

Commit 39277a3

Browse files
committed
Replace explicit sys.argv[1:] declaration from main() call. As suggested in joeyespo#79 (review), it was preferable to add more detailed docstring.
1 parent 45a1958 commit 39277a3

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

pytest_watch/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ def run_cli():
1616
sys.path.append(os.path.dirname(__file__))
1717

1818
from pytest_watch.command import main
19-
main(argv=sys.argv[1:])
19+
main()
2020

2121
if __name__ == '__main__': run_cli()

pytest_watch/command.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@
5555
def main(argv=None):
5656
"""
5757
The entry point of the application.
58+
59+
argv -- List of strings to parse. The default is taken from sys.argv[1:].
5860
"""
5961
if argv is None:
6062
argv = sys.argv[1:]

0 commit comments

Comments
 (0)