HLRosenberger
asked on
Help with syntax of command line help.
I need help with the correct syntax of command line help.
For this exe, either /ALL can be specified, or /legacy_table and /SQL_table=SQL. if the later, the /DELETE and /SCHEMAONLY are optional. I know what I have below is not quite correct. Thanks.
Console.WriteLine("LegacyE xport [/ALL] [/DELETE] [/SCHEMAONLY]")
Console.WriteLine(" </legacy_table=legacy table name> ")
Console.WriteLine(" </SQL_table=SQL table name> ")
Console.WriteLine(" [/?] (prints this help message)")
For this exe, either /ALL can be specified, or /legacy_table and /SQL_table=SQL. if the later, the /DELETE and /SCHEMAONLY are optional. I know what I have below is not quite correct. Thanks.
Console.WriteLine("LegacyE
Console.WriteLine(" </legacy_table=legacy table name> ")
Console.WriteLine(" </SQL_table=SQL table name> ")
Console.WriteLine(" [/?] (prints this help message)")
ASKER
Not quite... /ALL is an arg all by itself. if /ALL is specified, not other args are required.
if all is not specified, then /legacy_table and /SQL_table must be specified, and optionally /DELETE] and/or [/SCHEMAONLY]
if all is not specified, then /legacy_table and /SQL_table must be specified, and optionally /DELETE] and/or [/SCHEMAONLY]
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
ah, got it! Write each possible invocation on a separate line.
Thanks much!
Thanks much!
ASKER
thanks!
1) /ALL, with optional /DELETE and /SCHEMAONLY
2) /legacy_table and /SQL_table
Then I would write it like this:
Open in new window