Skip to content

Instantly share code, notes, and snippets.

@stfnm
Created February 9, 2012 10:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stfnm/1779220 to your computer and use it in GitHub Desktop.
Save stfnm/1779220 to your computer and use it in GitHub Desktop.
hostname.c options
static struct argp_option argp_options[] = {
#define GRP 0
{"aliases", 'a', NULL, 0, "alias names", GRP+1},
{"domain", 'd', NULL, 0, "DNS domain name", GRP+1},
{"file", 'F', "FILE", 0, "set host name or NIS domain name from FILE",
GRP+1},
{"fqdn", 'f', NULL, 0, "DNS host name or FQDN", GRP+1},
{"long", 'f', NULL, OPTION_ALIAS, "DNS host name or FQDN", GRP+1},
{"ip-addresses", 'i', NULL, 0, "addresses for the host name", GRP+1},
{"short", 's', NULL, 0, "short host name", GRP+1},
{"yp", 'y', NULL, 0, "NIS/YP domain name", GRP+1},
{"nis", 0, NULL, OPTION_ALIAS, NULL, GRP+1},
#undef GRP
{NULL}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment