Now a depricated warning is printed at the usage of whatnow.
Also add a BUG section to the manpage.
.fi
.SH "SEE ALSO"
-send(1)
+send(1), whatnow2(1)
.SH DEFAULTS
.nf
.RB ` \-prompt "' defaults to `What\ Now?\ '"
.fi
+.SH "BUGS"
+.B whatnow
+is deprecated an will be removed in the next release.
+Consider switching to whatnow2(1).
+
.SH CONTEXT
None
1 /XXX/baz's boz
EOF
+cat > $expectederr <<EOF
+whatnow: whatnow is deprecated. Consider switching to whatnow2.
+whatnow: whatnow is deprecated. Consider switching to whatnow2.
+whatnow: whatnow is deprecated. Consider switching to whatnow2.
+whatnow: whatnow is deprecated. Consider switching to whatnow2.
+EOF
+
# whatnow's exit status is always 1 so that is not a failure
set +e
echo "attach baz\\'s\\ boz" | whatnow -editor true -prompt '' 2>> $actualerr >> $actual
EOF
cat > $expectederr <<EOF
+whatnow: whatnow is deprecated. Consider switching to whatnow2.
EOF
# create a draft message
EOF
cat > $expectederr <<EOF
+whatnow: whatnow is deprecated. Consider switching to whatnow2.
EOF
# create a draft message
/* read user profile/context */
context_read();
+ advise(NULL, "whatnow is deprecated. Consider switching to whatnow2.");
+
arguments = getarguments(invo_name, argc, argv, 1);
argp = arguments;