gopher/options.text

45 lines
501 B
Plaintext
Raw Normal View History

2013-08-11 16:51:58 +00:00
#
# gopher command line options.
#
%extra_includes ->
extern void help(void);
2013-08-11 17:55:41 +00:00
extern void version(void);
/* global */
struct Options flags;
2013-08-11 16:51:58 +00:00
-h [virtual] ->
help();
exit(0);
2013-08-11 17:55:41 +00:00
-V [virtual] ->
version();
exit(0);
2013-08-11 16:51:58 +00:00
# -o specifies the output name
# -O gets the name from the URL.
-o: ->
options->_O = 0;
2013-08-11 17:55:41 +00:00
2013-08-11 16:51:58 +00:00
-O
-i
-I
-v
# -[0|1] -- set HTTP version.
2013-08-11 17:55:41 +00:00
2013-08-11 16:51:58 +00:00
-0 ->
options->_1 = 0;
2013-08-11 17:55:41 +00:00
options->_9 = 0;
2013-08-11 16:51:58 +00:00
-1 ->
2013-08-11 17:55:41 +00:00
options->_0 = 0;
options->_9 = 0;
-9 ->
options->_0 = 0;
options->_1 = 0;