Skip to content

Commit 14102ad

Browse files
committed
fix typo
1 parent 1092dcb commit 14102ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diffpy/cmi/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ def _cmd_example(ns: argparse.Namespace) -> int:
360360
int
361361
Exit code (``0`` on success; non-zero on failure).
362362
"""
363-
if ns.example_cmd == "copy":
363+
if ns.example_cmd in (None, "copy"):
364364
name = getattr(ns, "name", None)
365365
if not name:
366366
plog.error(

0 commit comments

Comments
 (0)