c# - Command options for an Exe -


I have a console application written in Fast, which takes some command line arguments from the command prompt. Now it will take some action based on the given option for the application. Like bellow

  & gt; TestExe.exe Option 1 (this will do action 1) & gt; TestExe.exe Option 2 (this will do 2) & gt; TestExe.exe Option 3 (this will do 3)   

What do I need now when the user types the name of the application and press the tab instead of getting the user all the options. Instead of remembering this option the application makes the user friendly.

Can someone give me some direction ..?

What you are asking is not possible.

Instead, four are executable, one of which is the program you are describing above, you have three others, representing one of three options (three batches) Files will also work, and possibly a little easier to maintain / maintain). These three execute the first with three suitable options.

Now, because you have four genuine files, the command will be completed using the tab - except by completing a parameter (which is not possible again). Shell will complete the command itself (a real file).

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -