diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-09-19 09:26:22 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-09-19 09:26:22 +0000 |
| commit | 16ddb2e2924c369975341d0bf878790918a7d15d (patch) | |
| tree | 61e71cad6c4135da135d37a85d535f925e54d366 /client.c | |
| parent | main/client: replace some uses of printf() with puts() in print_usage() (diff) | |
| parent | main/client: add no-op "-e" command-line option (diff) | |
Merge branch 'eflag'
Closes #184
Closes #257
Closes #313
Closes #596
Closes #625
Closes #716
Diffstat (limited to 'client.c')
| -rw-r--r-- | client.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -71,7 +71,8 @@ print_usage(const char *prog_name) " -o,--override=[section.]key=value override configuration option\n" " -d,--log-level={info|warning|error|none} log level (info)\n" " -l,--log-colorize=[{never|always|auto}] enable/disable colorization of log output on stderr\n" - " -v,--version show the version number and quit\n"; + " -v,--version show the version number and quit\n" + " -e ignored (for compatibility with xterm -e)\n"; printf("Usage: %s [OPTIONS...]\n", prog_name); printf("Usage: %s [OPTIONS...] command [ARGS...]\n", prog_name); @@ -145,7 +146,7 @@ main(int argc, char *const *argv) struct client_string *cargv = NULL; while (true) { - int c = getopt_long(argc, argv, "+t:T:a:w:W:mFLD:s:HNo:d:l::vh", longopts, NULL); + int c = getopt_long(argc, argv, "+t:T:a:w:W:mFLD:s:HNo:d:l::veh", longopts, NULL); if (c == -1) break; @@ -273,6 +274,9 @@ main(int argc, char *const *argv) ret = EXIT_SUCCESS; goto err; + case 'e': + break; + case '?': goto err; } |
