Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
hamelsmu committed Sep 20, 2024
1 parent 77b27d3 commit d4d2b28
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions nbdev/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,11 @@ def nbdev_update_license(
# %% ../nbs/api/13_cli.ipynb
@call_parse
@delegates(nb_export, but=['procs', 'mod_maker'])
def nb_export_cli(nbname, lib_path, name, debug:Param("debug flag", store_true), **kwargs):
def nb_export_cli(nbname,
debug:store_true=False, # Debug flag
**kwargs):
"Export a single nbdev notebook to a python script."
return nb_export(nbname=nbname, lib_path=lib_path, name=name, debug=debug, **kwargs)
return nb_export(nbname=nbname, debug=debug, **kwargs)

# %% ../nbs/api/13_cli.ipynb
@call_parse
Expand Down
6 changes: 4 additions & 2 deletions nbs/api/13_cli.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -297,9 +297,11 @@
"#|export\n",
"@call_parse\n",
"@delegates(nb_export, but=['procs', 'mod_maker'])\n",
"def nb_export_cli(nbname, lib_path, name, debug:Param(\"debug flag\", store_true), **kwargs): \n",
"def nb_export_cli(nbname, \n",
" debug:store_true=False, # Debug flag \n",
" **kwargs): \n",
" \"Export a single nbdev notebook to a python script.\"\n",
" return nb_export(nbname=nbname, lib_path=lib_path, name=name, debug=debug, **kwargs)"
" return nb_export(nbname=nbname, debug=debug, **kwargs)"
]
},
{
Expand Down

0 comments on commit d4d2b28

Please sign in to comment.