szaghi / FLAP

Fortran command Line Arguments Parser for poor people
150 stars 34 forks source link

Printing passed clas #89

Open ShatrovOA opened 4 years ago

ShatrovOA commented 4 years ago

Dear @szaghi !

I have couple of questions.

Best regards!

szaghi commented 4 years ago

Hi @ShatrovOA ,

sorry for the delay.

ShatrovOA commented 4 years ago

Hi @szaghi !

What do you mean by automatically print the passed clas? Is there any way that they can be printed with the help of special method?

Best regards!

szaghi commented 4 years ago

@ShatrovOA

What do you mean by automatically print the passed clas? Is there any way that they can be printed with the help of special method?

I was thinking to something like the is_passed method, see https://github.com/szaghi/FLAP/wiki/CLI-Method-is_passed

I can write a method that prints the status of all CLAS, printing a list like:

This method as is_passed can be used only after the CLI has been parsed obiuvsly.

Do you think it is useful?

ShatrovOA commented 4 years ago

Personally, I am not interested in "not passed" clas. I was hoping for something this:

Used CLA:
-f 23.4
command -i 23
-t true
-s string
szaghi commented 4 years ago

@ShatrovOA

Yes, it is possible to print also the value of the passed CLAS

I will try to implement it soon

ShatrovOA commented 4 years ago

@szaghi

Great!

Did you have an opportunity to check --help message?

szaghi commented 4 years ago

@ShatrovOA

Did you have an opportunity to check --help message?

not yet

ShatrovOA commented 4 years ago

Dear @szaghi !

Is it possible to also print unknown CLAs? I understand that it might be ugly...

Best regards!

szaghi commented 4 years ago

@ShatrovOA sorry for the dealy.

Is it possible to also print unknown CLAs?

yes

I hope to fix this soon.

szaghi commented 3 years ago

The new patch of @ShatrovOA seems to brilliantly solve this issue.

Thank you @ShatrovOA your help is really appreciated.