fprintf (fid, "usage: %s\n", progname);
fprintf (fid, " -h : help message\n");
fprintf (fid, " -b : in/out-put base (%s)\n", show_base ());
+ fprintf (fid, " -i : input prompt (%s)\n", oprompt);
fprintf (fid, " -n : no readline mode (%s)\n", mode ? "yes" : "no");
fprintf (fid, " -n : no readline mode (%s)\n", mode ? "yes" : "no");
fprintf (fid, " -o : output prompt (%s)\n", oprompt);
// test: calc.exe -p 2>&1 | grep -q 'missing precision'
// test: calc.exe -v 2>&1 | grep -q 'missing verbose'
// test: echo "1 + 1" | calc.exe -i '# ' | grep -q '# 1 + 1'
+// test: echo "1 + 1" | calc.exe -i '# ' -i 'x ' | grep -q 'x 1 + 1'
// test: echo "1 + 1" | calc.exe -o '# ' | grep -q '# 2'
// test: echo "1 + 1" | calc.exe -o '# ' -o 'x ' | grep -q 'x 2'
// test: echo "1 + 2" | calc.exe | grep -q '=> 3'