1.1 --- a/main.c Thu Mar 23 00:32:22 2023 +0100
1.2 +++ b/main.c Fri Apr 07 19:10:58 2023 +0200
1.3 @@ -1,7 +1,7 @@
1.4 /*
1.5 * Main program.
1.6 *
1.7 - * Copyright (C) 2019, 2022 Paul Boddie <paul@boddie.org.uk>
1.8 + * Copyright (C) 2019, 2022, 2023 Paul Boddie <paul@boddie.org.uk>
1.9 *
1.10 * This program is free software; you can redistribute it and/or
1.11 * modify it under the terms of the GNU General Public License as
1.12 @@ -37,6 +37,7 @@
1.13
1.14 static struct option long_options[] = {
1.15 /* long opt following var pointer short opt */
1.16 + {"alignment", required_argument, NULL, 'A' },
1.17 {"all", no_argument, NULL, 'a' },
1.18 {"client", no_argument, NULL, 'c' },
1.19 {"dir", required_argument, NULL, 'd' },
1.20 @@ -72,12 +73,17 @@
1.21
1.22 while (1)
1.23 {
1.24 - option = getopt_long(argc, argv, "acd:fhil:rRsvV?", long_options, NULL);
1.25 + option = getopt_long(argc, argv, "A:acd:fhil:rRsvV?", long_options, NULL);
1.26 if (option == -1)
1.27 break;
1.28
1.29 switch (option)
1.30 {
1.31 + /* Set alignment. */
1.32 + case 'A':
1.33 + conf.alignment = atoi(optarg);
1.34 + break;
1.35 +
1.36 /* Generate everything. */
1.37 case 'a':
1.38 conf.client = 1; conf.server = 1;