[util] Add -n shorthand for --num-iterations
authorBehdad Esfahbod <behdad@behdad.org>
Tue, 11 Sep 2018 12:11:10 +0000 (14:11 +0200)
committerBehdad Esfahbod <behdad@behdad.org>
Tue, 11 Sep 2018 12:11:10 +0000 (14:11 +0200)
Meh.

util/options.cc

index 57cc4aa..2902807 100644 (file)
@@ -419,7 +419,7 @@ shape_options_t::add_options (option_parser_t *parser)
     {"cluster-level",  0, 0, G_OPTION_ARG_INT,         &this->cluster_level,           "Cluster merging level (default: 0)",   "0/1/2"},
     {"normalize-glyphs",0, 0, G_OPTION_ARG_NONE,       &this->normalize_glyphs,        "Rearrange glyph clusters in nominal order",    nullptr},
     {"verify",         0, 0, G_OPTION_ARG_NONE,        &this->verify,                  "Perform sanity checks on shaping results",     nullptr},
-    {"num-iterations", 0, 0, G_OPTION_ARG_INT,         &this->num_iterations,          "Run shaper N times (default: 1)",      "N"},
+    {"num-iterations", 'n', 0, G_OPTION_ARG_INT,               &this->num_iterations,          "Run shaper N times (default: 1)",      "N"},
     {nullptr}
   };
   parser->add_group (entries,