Skip to content

Commit a87700f

Browse files
committed
Add note on nargs='+'
1 parent 0ca4e89 commit a87700f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1340,7 +1340,7 @@ <h2>2. Wrap your function in a CLI</h2>
13401340
parser = argparse.ArgumentParser(prog='your-hook')
13411341
parser.add_argument(
13421342
'filenames',
1343-
nargs='+',
1343+
nargs='+', # require at least one (can provide more)
13441344
help='Filenames to process.',
13451345
)
13461346

0 commit comments

Comments
 (0)