c++ - How to change --usage output with argp? -


i built program config file parser , cli options.

my goal have order of priority :

  1. cli options configuration
  2. mandatory configuration file
  3. hardcoded default configuration

while parsing cli arguments argp need read path config file first (which not option) other cli options override config file settings.

as described in glibc argp documentation, options read first non-option arguments, unless use argp_in_order flag. in case arguments read first last (option or not).

in case, first mandatory argument path config file. behave expected, except usage output.

i have :

usage: myprogramm [option...] configurationfile 

i need :

usage: myprogramm configurationfile [option...] 

is there way place non-optional arguments first in usage output?


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

Laravel mail error `Swift_TransportException in StreamBuffer.php line 269: Connection could not be established with host smtp.gmail.com [ #0]` -

c# SetCompatibleTextRenderingDefault must be called before the first -