You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IMHO, both switches have nothing to do with the "flow" of the program. They both are like-h and -v. They produce a result out of the scope of the main program. Both -mp and -md switches would be built-in like-h and -v taking the progname from cli%init() as file name and 1 or md as file extensions.
If convenient, also two extra arguments manname and mdname would be added to cli%init() in favour of freedom.
Hence, just typing
$ ./program -mp -md
w/o any required switches will be more convenient and elegant.
Of course, current possibility of adding manually extra switches to get man page and markdown file names from CL are still available.
Tia
PS: Having default text for each required switch is not always convenient, especially in case a path is required; setting def = '' requires extra condition to stop the execution of the program.
After considering the examples in the end, I wonder how the
-mp
and-md
switches would be used if there were alsorequired
switches. For example:IMHO, both switches have nothing to do with the "flow" of the program. They both are like
-h
and-v
. They produce a result out of the scope of the main program. Both-mp
and-md
switches would be built-in like-h
and-v
taking theprogname
fromcli%init()
as file name and1
ormd
as file extensions.If convenient, also two extra arguments
manname
andmdname
would be added tocli%init()
in favour of freedom.Hence, just typing
w/o any
required
switches will be more convenient and elegant.Of course, current possibility of adding manually extra switches to get man page and markdown file names from CL are still available.
Tia
PS: Havingdefault
text for eachrequired
switch is not always convenient, especially in case a path is required; settingdef = ''
requires extra condition to stop the execution of the program.Examples
OR
The text was updated successfully, but these errors were encountered: