@@ -294,6 +294,10 @@ set +o posix
294
294
declare -A __argsparse_options_descriptions=()
295
295
296
296
# # @brief The name of the program currently using argsparse.
297
+ # # @details Automatically set by argsparse at load time, it contains
298
+ # # the basename (path-less but with extension, if any) of the main
299
+ # # script. Used internally to print error messages and by
300
+ # # usage-related functions, but can be used by the loading script.
297
301
# # @hideinitializer
298
302
declare -r argsparse_pgm=${0##*/ }
299
303
@@ -614,6 +618,13 @@ argsparse_usage_short() {
614
618
printf -- " %s\n" " $current_line "
615
619
}
616
620
621
+ # # @var Array __argsparse_parameters_description
622
+ # # @private
623
+ # # @brief Internal use only.
624
+ # # @ingroup ArgsparseUsage
625
+ # @details Used by argsparse_describe_parameters() to store
626
+ # non-option positionnal parameters short descriptions and by
627
+ # argsparse_usage_short() to print them to end-users.
617
628
declare -a __argsparse_parameters_description
618
629
619
630
# # @fn argsparse_describe_parameters()
@@ -1385,7 +1396,7 @@ argsparse_has_option_property() {
1385
1396
declare -A __argsparse_short_options=()
1386
1397
1387
1398
# @fn __argsparse_optstring_has_short()
1388
- # @brief Internal use.
1399
+ # @brief Internal use only .
1389
1400
# @details Prints the short option string suitable for getopt command
1390
1401
# line.
1391
1402
# @param optstring an optstring
0 commit comments