"Fossies" - the Fresh Open Source Software Archive

Member "xzgv-0.9.2/src/options.src" (3 Sep 2017, 3180 Bytes) of package /linux/misc/old/xzgv-0.9.2.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 # This is mangled by mkopts.awk to make rcfile_{opt,var,short}.h. Such
    2 # an approach is necessary so we can use it to make the tables for
    3 # both getopt_long() and my config file stuff. It also generates the
    4 # short-options getopt string as a #define in rcfile_short.h, so that
    5 # it doesn't have to be duplicated by hand in rcfile.c (which would suck).
    6 #
    7 # The main remaining duplication is that options are documented in
    8 # both rcfile.c's usage_help() and the texinfo docs, but I don't see
    9 # that as too huge a problem really. :-)
   10 
   11 
   12 # The format is one record per line, with blank lines and lines
   13 # starting with `#' ignored. Lines have these fields (separated
   14 # by whitespace, and *without any commas*):
   15 #
   16 # name		long option/config variable name.
   17 # shortopt	char used for short option (0 if none or not appropriate).
   18 # allow_option	1 if allowed as option.
   19 # allow_config	1 if allowed as config variable.
   20 # has_arg	NO_ARG/REQ_ARG/OPT_ARG, like the no_argument/required_argument/
   21 #		optional_argument used by getopt_long().
   22 # funcptr	function to call if opt/var is encountered.
   23 # dataptr	data pointer supplied to function.
   24 #
   25 # funcptr is called like this:
   26 #
   27 #	funcptr(optarg,dataptr);
   28 #
   29 # with `optarg' being any argument given to the opt/var, NULL if none.
   30 
   31 # Note that most apparently-boolean args below which are OPT_ARG use
   32 # the extra arg to override the default set-the-flag behaviour; so for
   33 # example, `--fullscreen' sets the fullscreen flag, but
   34 # `--fullscreen=off' unsets it (useful if it's set in a config file).
   35 
   36 
   37 # name		short	opt,cfg,has_arg	funcptr		dataptr
   38 
   39 # help opts
   40 "help"		'h'	1 0 NO_ARG	usage_help	NULL
   41 "version"	'v'	1 0 NO_ARG	print_version	NULL
   42 "version-gtk"	0	1 0 NO_ARG	print_gtk_ver	NULL
   43 
   44 "auto-hide"	'a'	1 1 OPT_ARG	get_bool	&auto_hide
   45 "careful-jpeg"	0	1 1 OPT_ARG	get_bool	&careful_jpeg
   46 "click-for-next" 0	0 1 OPT_ARG	get_bool	&click_nextpic
   47 "dither-hicol"	0	1 1 OPT_ARG	get_bool	&hicol_dither
   48 "delete-single-prompt" 0 1 1 OPT_ARG	get_bool	&delete_single_prompt
   49 "exif-orient"	0	1 1 OPT_ARG	get_bool	&use_exif_orient
   50 "fast-recursive-update" 0 1 1 OPT_ARG	get_bool	&fast_recursive_update
   51 "fullscreen"	'f'	1 1 OPT_ARG	get_bool	&fullscreen
   52 "geometry"	'g'	1 1 REQ_ARG	get_geom	NULL
   53 "image-bigness-threshold" 0 1 1 REQ_ARG	get_int	       &image_bigness_threshold
   54 "interpolate"	0	1 1 OPT_ARG	get_bool	&interp
   55 "mouse-scale-x" 0	1 1 OPT_ARG	get_bool	&mouse_scale_x
   56 "revert-orient"	0	1 1 OPT_ARG	get_bool	&revert_orient
   57 "revert-scale"	0	1 1 OPT_ARG	get_bool	&revert
   58 "selector-width" 0	1 1 REQ_ARG	get_selwidth	&default_sel_width
   59 "show-thumbnail-messages" 0 1 1 OPT_ARG	get_bool	&tn_msgs
   60 "skip-parent"	'k'	1 1 OPT_ARG	get_bool	&skip_parent
   61 "sort-order"	'o'	1 1 REQ_ARG	get_sortorder	NULL
   62 "sort-timestamp-type" 0 1 1 REQ_ARG	get_timetype	NULL
   63 "statusbar"	0	1 1 OPT_ARG	get_bool	&have_statusbar
   64 "thin-rows"	't'	1 1 OPT_ARG	get_bool	&thin_rows
   65 "zoom"		'z'	1 1 OPT_ARG	get_bool	&zoom
   66 "zoom-reduce-only" 'r'	1 1 OPT_ARG	get_bool	&zoom_reduce_only
   67 "zoom-panorama" 'p'	1 1 OPT_ARG	get_bool	&zoom_panorama
   68 "images-only" 'i'	1 1 OPT_ARG	get_bool	&show_images_only
   69 
   70 # `one-offs', ones you can't enable in a config file
   71 "show-tagged"	'T'	1 0 OPT_ARG	get_bool	&show_tagged