+void usage(char* program_name) {
+ /*
+ * Print usage information.
+ */
+ printf("Reapply any applicable default ACLs to the given files or "
+ "directories.\n\n");
+ printf("Usage: %s <target1> [<target2> [ <target3>...]]\n", program_name);
+}
+
+
+bool asked_for_help(int argc, char* argv[]) {
+ /*
+ * Check argv for either form of the "help" flag, -h or --help.
+ */
+ int arg_index = 1;
+ for (arg_index = 1; arg_index < argc; arg_index++) {
+ if (!strcmp(argv[arg_index], "-h")) {
+ return true;
+ }
+ if (!strcmp(argv[arg_index], "--help")) {
+ return true;
+ }
+ }
+
+ return false;
+}
+