summaryrefslogtreecommitdiff
path: root/src/cli.c
diff options
context:
space:
mode:
authorjakob <jakob@memeware.net>2017-01-17 15:29:07 -0500
committerjakob <jakob@memeware.net>2017-01-17 15:29:07 -0500
commit6d844032442f36b924e1c270a123dc970ddd96a6 (patch)
tree14ae61f8a0efc0b0e3de7462b9b4dc5a5e9f83eb /src/cli.c
parentef05e4e0b8c5cc21b57ae60b60cfbfc7f046bd59 (diff)
Improved readability.
Diffstat (limited to 'src/cli.c')
-rw-r--r--src/cli.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/cli.c b/src/cli.c
index 0c8dce8..0025141 100644
--- a/src/cli.c
+++ b/src/cli.c
@@ -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;