Starting a console application from parameters



I'm writing a Console Application and I would like to start it only if I pass to it a param:

myapp.exe -s --> start
myapp.exe --> I write usage reference

How can i do this?

Any help appreciated.

Best regards.

--
fabri
Sei un italiano medio, di oltre trent'anni se:
Sai che il codice SYS64738 serviva per riavviare il Commodore 64 ed hai cambiato almeno una mezza dozzina di joystick Quickshot I giocando a Summer Games.
MKDS nick & friend Code:
Joker® - 055895 043343
.



Relevant Pages

  • How good is PERL at searching ASCII files?
    ... some text manipulation that needs doing and I've heard many times that ... or should I just spend 3 or 4 hours writing ... segregate the three param calls from the two param calls. ... The key elements being the string CONVERT, ...
    (perl.beginners)
  • How good is PERL at searching ASCII files?
    ... some text manipulation that needs doing and I've heard many times that ... or should I just spend 3 or 4 hours writing ... segregate the three param calls from the two param calls. ... The key elements being the string CONVERT, ...
    (comp.lang.perl.misc)
  • Re: How good is PERL at searching ASCII files?
    ... Can PERL do th ... or should I just spend 3 or 4 hours writing ... segregate the three param calls from the two param calls. ... The key elements being the string CONVERT, ...
    (comp.lang.perl.misc)
  • Re: Help me!!
    ... >> I am writing an intepreter for a mathematical language. ... >> console for the interpreter that can be invoked from within the GUI ... But this solution separates input area from output area. ...
    (comp.lang.java.gui)
  • Re: CallBack function is not not working .............
    ... You didn't mention you were writing a console based application. ... significant because you will not have a Windows message pump. ... Particulalry if you are new to TAPI. ...
    (microsoft.public.win32.programmer.tapi)