Mercurial > p > roundup > code
diff roundup/admin.py @ 8435:1a93dc58f975
feat: add 'q' as alias to quit to exit interactive roundup-admin
Also require no arguments to 'q', 'quit' or 'exit' before exiting.
Now typing 'quit a' will get an unknown command error.
Add to admin-guide how to get out of interactive mode.
Also test 'q' and 'exit' commands.
No upgrading docs added. Not that big a feature. Just noted in
CHANGES. Reporting error if argument provided is unlikely to be an
issue IMO, so no upgrading.txt entry.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Tue, 26 Aug 2025 23:37:42 -0400 |
| parents | e5d07fac0249 |
| children | 3bdae15252c6 |
line wrap: on
line diff
--- a/roundup/admin.py Tue Aug 26 23:06:40 2025 -0400 +++ b/roundup/admin.py Tue Aug 26 23:37:42 2025 -0400 @@ -2415,7 +2415,8 @@ except ValueError: continue # Ignore invalid quoted token if not args: continue # noqa: E701 - if args[0] in ('quit', 'exit'): break # noqa: E701 + if args[0] in ('q', 'quit', 'exit') and len(args) == 1: + break # noqa: E701 self.run_command(args) # exit.. check for transactions
