diff options
| author | jakob <jakob@memeware.net> | 2017-01-17 15:29:07 -0500 |
|---|---|---|
| committer | jakob <jakob@memeware.net> | 2017-01-17 15:29:07 -0500 |
| commit | 6d844032442f36b924e1c270a123dc970ddd96a6 (patch) | |
| tree | 14ae61f8a0efc0b0e3de7462b9b4dc5a5e9f83eb /src/cli.c | |
| parent | ef05e4e0b8c5cc21b57ae60b60cfbfc7f046bd59 (diff) | |
Improved readability.
Diffstat (limited to 'src/cli.c')
| -rw-r--r-- | src/cli.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -90,7 +90,7 @@ struct configuration parse_args(int argc, char *argv[]) { break; case 'a': count++; - parsed.archive_path = optarg; + parsed.archive = optarg; break; case 'g': count++; @@ -108,7 +108,8 @@ struct configuration parse_args(int argc, char *argv[]) { parsed.game = NO_CRYPTO; break; case 'e': - /* '-e' is still parsed to provide consisency. */ + /* Despite being the default, '-e' is + still parsed to provide consisency. */ parsed.mode = EXTRACT; break; case 'l': @@ -119,12 +120,12 @@ struct configuration parse_args(int argc, char *argv[]) { /* getopt "sorts" the argument array such that all of the flags come first. argv[count] is the first positional argument encountered. */ - if (parsed.archive_path == NULL) { + if (parsed.archive == NULL) { if (argv[count] == NULL) { fprintf(stderr, "No archive path provided.\n"); exit(EXIT_FAILURE); } - parsed.archive_path = argv[count]; + parsed.archive = argv[count]; } return parsed; |