blob: 55f526fbfcc3c477b14f28c028dc33569af512c3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
Add support for the -h switch.
--- pcalc-000/pcalc.y
+++ pcalc-000/pcalc.y
@@ -315,6 +315,18 @@
{
switch(argv[i][1])
{
+ case 'h' :
+ printf (
+ "\nProgrammer's calculator by Peter Glen.\n\n"
+ "Usage: pcalc <stuff to calculate>\n"
+ " pcalc @script\n"
+ "\nOptions:\n"
+ " -s,-S silent mode\n"
+ " -b,-B silent mode\n"
+ " -v version\n"
+ " -h help\n"
+ "\nFor more info, run pcalc without any options, or see the README.\n\n");
+
case 'S' : /* quiet mode */
case 's' :
fSilent = 1;
|