CommandLineUtils icon indicating copy to clipboard operation
CommandLineUtils copied to clipboard

[Question] Defining Options in Base Class and using them in derived class

Open krishnad1982 opened this issue 2 years ago • 0 comments

In my application, I have a base class that defines one argument representing commands I want to use in multiple derived classes. However, when I insert the command-line arguments and run my application, these options are null. Their values always need to be set. I tried the solution described for the Options. I declared a 'Parent' property in the derived class, but that populates as null. However, the below workaround is working var args= app.Parent.Arguments; Is anything similar to Options available to access parent Arguments in the derived class?

krishnad1982 avatar Mar 12 '23 00:03 krishnad1982