Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cd77dd6

Browse files
committed
Fix minor error in example.
1 parent f50299c commit cd77dd6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/lib/liboptparse.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ \subsubsection{Putting it all together\label{optparse-basic-summary}}
606606
action="store_false", dest="verbose")
607607
608608
options, args = parser.parse_args()
609-
if len(args) != 1:
609+
if len(args) != 2:
610610
parser.error("incorrect number of arguments")
611611
612612
if options.verbose:

0 commit comments

Comments
 (0)