Click here to Skip to main content
15,039,319 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to develop a command line tool for my project,Please give me some suggestions about the design,such as how to keep it efficient,convenient...
Posted
Updated 2-Nov-11 16:12pm
v2

1 solution

Just to give you some ideas: would you look at my .NET implementation of command line utility library based on enumeration types; see my CodeProject article Enumeration-based Command Line Utility[^]. The benefits of my approach is ease of use and good maintainability of the code, because the functionality is based on type declarations, so the code is validated by the compiler in contrast to approach based on string constants.

I hope, based on your knowledge of Java reading my C# code and article will not be too difficult.

—SA
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900