Skip to content

Commit

Permalink
Update version and help flag test in notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
ncoop57 committed Dec 30, 2024
1 parent 08b35f8 commit 35fad3b
Showing 1 changed file with 5 additions and 21 deletions.
26 changes: 5 additions & 21 deletions nbs/08_script.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"We can also check the version and help flaggs are working (you can ignore the error message below, this is expected behavior)"
"We can also check the version and help flaggs are working."
]
},
{
Expand All @@ -450,19 +450,11 @@
"text": [
"progname 2.0.0\n"
]
},
{
"ename": "SystemExit",
"evalue": "0",
"output_type": "error",
"traceback": [
"An exception has occurred, use %tb to see the full traceback.\n",
"\u001b[0;31mSystemExit\u001b[0m\u001b[0;31m:\u001b[0m 0\n"
]
}
],
"source": [
"p.parse_args(['--v'])"
"try: p.parse_args(['--v'])\n",
"except: pass"
]
},
{
Expand All @@ -488,19 +480,11 @@
" --b B param 2 (default: test)\n",
" --c {aa,bb,cc} param 3 (default: aa)\n"
]
},
{
"ename": "SystemExit",
"evalue": "0",
"output_type": "error",
"traceback": [
"An exception has occurred, use %tb to see the full traceback.\n",
"\u001b[0;31mSystemExit\u001b[0m\u001b[0;31m:\u001b[0m 0\n"
]
}
],
"source": [
"p.parse_args(['-h'])"
"try: p.parse_args(['-h'])\n",
"except: pass"
]
},
{
Expand Down

0 comments on commit 35fad3b

Please sign in to comment.