Open GHNewbiee opened 1 year ago
@GHNewbiee
Nice suggestion, thank you very much. I'll try to work on it ASAP.
Kind regards
Hi,
I support this idea too. Is there some progress on this issue? I could potentially help on this by mimicking the switches -h
and -v
.
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