Accept position arguments, I'm tired of forgetting -p #27
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "mdk/potodo:mdk-p"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hum oops I have a totally unrelated change, simplifying an
if not any.Looks good to me, left some nitty suggestions
It's very nice simplification of the API 💯
@ -22,2 +22,4 @@def handle_dash_p_compat(args: argparse.Namespace) -> None:"""Could be remonved in like 2028.nit: remonved -> removed
@ -24,0 +34,4 @@"🍰 hint: using -p to invoke potodo became optional in potodo 0.3.",file=sys.stderr,)print(" (and may be removed in the future)", file=sys.stderr)nit suggestion: make those a one print with
\nat the end of the first line@ -38,0 +56,4 @@parser.add_argument("paths",help="Examine files in the given path",Examine files in the given path -> Examine files in given path(s)
@ -239,3 +264,3 @@# If no path is specified, use current directoryif not args.paths:if not args.paths and not args.old_paths:superfluous: we call
handle_dash_p_compatbeforecheck_argsAdding a
del args.old_pathsinhandle_dash_p_compat.