diff --git a/src/memray/commands/attach.py b/src/memray/commands/attach.py index 7f5241755f..cfef725dae 100644 --- a/src/memray/commands/attach.py +++ b/src/memray/commands/attach.py @@ -421,9 +421,9 @@ def run(self, args: argparse.Namespace, parser: argparse.ArgumentParser) -> None if args.stop_tracking: if args.output: - parser.error("Can't use --stop-tracking with --output") + parser.error("Can't use --stop-tracking with -o or --output") if args.force: - parser.error("Can't use --stop-tracking with --force or -f") + parser.error("Can't use --stop-tracking with -f or --force") if args.aggregate: parser.error("Can't use --stop-tracking with --aggregate") if args.native: