From 0083c5397fafb0e1650e3b0739bc168a709d5928 2021-10-24 14:55:06 From: Paulo S. Costa Date: 2021-10-24 14:55:06 Subject: [PATCH] Adhere to usage style when documenting save args --- diff --git a/IPython/core/magics/code.py b/IPython/core/magics/code.py index e4b85e3..1451bd5 100644 --- a/IPython/core/magics/code.py +++ b/IPython/core/magics/code.py @@ -185,7 +185,7 @@ class CodeMagics(Magics): """Save a set of lines or a macro to a given filename. Usage:\\ - %save [options] filename n1-n2 n3-n4 ... n5 .. n6 ... + %save [options] filename [history] Options: @@ -199,7 +199,7 @@ class CodeMagics(Magics): -a: append to the file instead of overwriting it. - This function uses the same syntax as %history for input ranges, + The history argument uses the same syntax as %history for input ranges, then saves the lines to the filename you specify. If no ranges are specified, saves history of the current session up to