For applications that have one or two arguments, you could probably manage with some switches and ifs, but when there are more arguments, you could use a CommandLineParser library and thus make your code cleaner and more elegant.
|
Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CommandLineParser", "CommandLineParser\CommandLineParser.csproj", "{251387D3-9F28-4FB2-90A4-01DD05F1D2AF}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ParserTest", "ParserTest\ParserTest.csproj", "{FBB83C7A-3BB4-45FC-8F69-9E912AD63821}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "InteractiveParserTest", "InteractiveParserTest\InteractiveParserTest.csproj", "{2717C12F-2DC1-4E9A-A01C-E5ACC5E795DC}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{251387D3-9F28-4FB2-90A4-01DD05F1D2AF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{251387D3-9F28-4FB2-90A4-01DD05F1D2AF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{251387D3-9F28-4FB2-90A4-01DD05F1D2AF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{251387D3-9F28-4FB2-90A4-01DD05F1D2AF}.Release|Any CPU.Build.0 = Release|Any CPU
{FBB83C7A-3BB4-45FC-8F69-9E912AD63821}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{FBB83C7A-3BB4-45FC-8F69-9E912AD63821}.Debug|Any CPU.Build.0 = Debug|Any CPU
{FBB83C7A-3BB4-45FC-8F69-9E912AD63821}.Release|Any CPU.ActiveCfg = Release|Any CPU
{FBB83C7A-3BB4-45FC-8F69-9E912AD63821}.Release|Any CPU.Build.0 = Release|Any CPU
{2717C12F-2DC1-4E9A-A01C-E5ACC5E795DC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2717C12F-2DC1-4E9A-A01C-E5ACC5E795DC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2717C12F-2DC1-4E9A-A01C-E5ACC5E795DC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2717C12F-2DC1-4E9A-A01C-E5ACC5E795DC}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I am a computer science student at Charles University in Prague. I work as a developer of CRM and informational systems.