Skip to content

Commit d4d2b28

Browse files
committed
clean up
1 parent 77b27d3 commit d4d2b28

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

nbdev/cli.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,11 @@ def nbdev_update_license(
162162
# %% ../nbs/api/13_cli.ipynb
163163
@call_parse
164164
@delegates(nb_export, but=['procs', 'mod_maker'])
165-
def nb_export_cli(nbname, lib_path, name, debug:Param("debug flag", store_true), **kwargs):
165+
def nb_export_cli(nbname,
166+
debug:store_true=False, # Debug flag
167+
**kwargs):
166168
"Export a single nbdev notebook to a python script."
167-
return nb_export(nbname=nbname, lib_path=lib_path, name=name, debug=debug, **kwargs)
169+
return nb_export(nbname=nbname, debug=debug, **kwargs)
168170

169171
# %% ../nbs/api/13_cli.ipynb
170172
@call_parse

nbs/api/13_cli.ipynb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,9 +297,11 @@
297297
"#|export\n",
298298
"@call_parse\n",
299299
"@delegates(nb_export, but=['procs', 'mod_maker'])\n",
300-
"def nb_export_cli(nbname, lib_path, name, debug:Param(\"debug flag\", store_true), **kwargs): \n",
300+
"def nb_export_cli(nbname, \n",
301+
" debug:store_true=False, # Debug flag \n",
302+
" **kwargs): \n",
301303
" \"Export a single nbdev notebook to a python script.\"\n",
302-
" return nb_export(nbname=nbname, lib_path=lib_path, name=name, debug=debug, **kwargs)"
304+
" return nb_export(nbname=nbname, debug=debug, **kwargs)"
303305
]
304306
},
305307
{

0 commit comments

Comments
 (0)