Skip to content

Commit 972f47f

Browse files
committed
Add message for -e and -E assert
1 parent 5070ea1 commit 972f47f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pysrc/juliacall/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
parser.add_argument('--history-file', choices=['yes', 'no'], default='yes', help='Load or save history')
1111
parser.add_argument('--preamble', type=Path, help='Code to be included before the REPL starts')
1212
args = parser.parse_args()
13-
assert not (args.eval is not None and args.print is not None)
13+
assert not (args.eval is not None and args.print is not None), "Cannot specify both -e/--eval and -E/--print"
1414
if args.eval is not None:
1515
from juliacall import Main
1616
Main.seval(args.eval)

0 commit comments

Comments
 (0)