X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=fips.c;h=fca2da8ec7c6e6df1c9d199e8e3f5b470d088548;hb=211a9ae3f02ce8032da195b211ea683d5fada05d;hp=02f67bb80fd1e6983d4680d132f19c966f2e8065;hpb=c457e83d57b257f1f3aa7c39bbc0c60d127cc189;p=fips diff --git a/fips.c b/fips.c index 02f67bb..fca2da8 100644 --- a/fips.c +++ b/fips.c @@ -43,7 +43,17 @@ main (int argc, char *argv[]) { int opt, ret; - const char *short_options = "h"; + /* The initial '+' means that getopt will stop looking for + * options after the first non-option argument. This means + * that a command such as: + * + * fips glxgears -fullscreen + * + * Will do what is intended, (namely, have fips invoke + * "glxgears -fullscreen" rather than trying to interpret + * -fullscreen as options to fips itself. + */ + const char *short_options = "+h"; const struct option long_options[] = { {"help", no_argument, 0, 'h'}, {0, 0, 0, 0}