Skip to content
This repository was archived by the owner on Jul 15, 2019. It is now read-only.

Commit 802cb8b

Browse files
author
Anders Eurenius
committed
Style: fix command line argv passing
1 parent 6a4ef9d commit 802cb8b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

bin/graphwalker

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@
44
from graphwalker import cli
55

66
if __name__ == '__main__':
7-
cli.main()
7+
import sys
8+
cli.main(sys.argv)

graphwalker/cli.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -109,14 +109,13 @@ def run(args):
109109
reporter.end_suite()
110110

111111

112-
def main():
112+
def main(argv):
113113
import logging
114-
import sys
115114

116115
logging.basicConfig(level=logging.INFO)
117-
args = docopt.docopt(usage, sys.argv[1:])
116+
args = docopt.docopt(usage, argv[1:])
118117
run(args)
119118

120119

121120
if __name__ == '__main__':
122-
main()
121+
main(sys.argv)

0 commit comments

Comments
 (0)