Skip to content

Commit 6548584

Browse files
authored
Keep check for upper nargin limit (automatically since Octave 7)
Thanks to @mmuetzel.
1 parent 0624f2b commit 6548584

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/jupyter_notebook.m

+2-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,8 @@
144144

145145
function obj = jupyter_notebook (notebook_filename, options)
146146

147-
if (nargin < 1)
147+
## Keep check for upper nargin limit (automatically since Octave 7).
148+
if ((nargin < 1) || (nargin > 2))
148149
print_usage ();
149150
endif
150151

0 commit comments

Comments
 (0)