<p>My team has a command parsing library for console apps. Each team around us has their own as well. There isn't anything in the BCL so I suppose this is natural.</p>

<p>I've looked at the the module in Mono, which seems solid, and the one on CodePlex looks fine as well. There are probably others out there that will work (and I would love to hear your suggestions).</p>

<p>The real question is: how do I get my team, and others around us, to commit to just using one? </p>

[{'answer_id': 55016, 'author': 'Josef', 'author_id': 5581, 'author_profile': 'https://Stackoverflow.com/users/5581', 'pm_score': 1, 'selected': False, 'text': "<p>Once you find a solution, you start forcing it in code reviews. If it's not implemented in new code, tell them, sorry, but you have to go back and do it again. If you already have standards and reviews in place, this is a lot easier to implement.</p>\n"}, {'answer_id': 55032, 'author': 'EBGreen', 'author_id': 1358, 'author_profile': 'https://Stackoverflow.com/users/1358', 'pm_score': 3, 'selected': True, 'text': "<p>Well to be honest, you <strong>can't</strong> make everyone settle on one solution. You can suggest a solution and point out it's benefits, but eventually the advantages would have to be greater than the inertia that they have built up with their present library.</p>\n\n<p>To make them settle on one library you would need to go up the management change until you get to the person that manages all the groups involved. Convince that person why everyone should use one library then let it filter back down.</p>\n\n<p>Now that I have said that, why does it matter? Does your team routinely have to work on code from the other teams? Are the other teams using libraries that cause problems for your code? Is this standardization purely for the sake of standardization or is there some specific problem that not standardizing causes?</p>\n"}, {'answer_id': 55058, 'author': 'Justin R.', 'author_id': 4593, 'author_profile': 'https://Stackoverflow.com/users/4593', 'pm_score': 0, 'selected': False, 'text': "<p>EBGreen, good point, I should have mentioned <em>why</em> I am looking to do this. Our teams frequently read and edit code from the surrounding teams. And I mean feature teams, not just dev/test/pm divisions. </p>\n\n<p>This is just one of those little things that slow everybody down. Working on Team C's code? Got to track down their lib, which mysteriously isn't in the nightly builds (another problem, but independent of this). Reviewing another dev's work? Need to figure out how their parser works. Starting a new project? Need to decide which library to import. </p>\n\n<p>I think that your response does indicate the solution though: Put the library somewhere very convenient, so it can be picked up by new projects (I doubt that many existing ones will be revised, nor should they be if they're working fine), and make the advantages of using it clear. </p>\n\n<p>Thanks! </p>\n"}, {'answer_id': 55074, 'author': 'EBGreen', 'author_id': 1358, 'author_profile': 'https://Stackoverflow.com/users/1358', 'pm_score': 0, 'selected': False, 'text': '<p>@fatcat1111, in that case by all means a standardized library would be advantageous. As for how to convince the other teams, there are two approaches that I can think of. First point out that standardization across a group always reduces coding effort (discounting for the initial ramp up for people that are new to the standardized library). Second, try to convince them on features. Hopefully you would be choosing the most feature complete library so it would be superior to what everyone else is using.</p>\n'}, {'answer_id': 55225, 'author': 'Steven Murawski', 'author_id': 1233, 'author_profile': 'https://Stackoverflow.com/users/1233', 'pm_score': 0, 'selected': False, 'text': '<p>PowerShell provides great command line parsing options for free.  When you create a cmdlet, you define properties and use attributes to determine command line options.  The PowerShell runtime then handles the parsing of input for you.</p>\n\n<p>Also, since PowerShell works with .NET objects, the result of your commands can be rich objects with properties and methods.</p>\n\n<p><a href="http://blog.cumps.be/using-powershell-writing-and-debugging-cmdlets/" rel="nofollow noreferrer">Here</a> is a nice blog post demonstrating writing and debugging cmdlets.</p>\n'}, {'answer_id': 65210, 'author': 'damageboy', 'author_id': 9172, 'author_profile': 'https://Stackoverflow.com/users/9172', 'pm_score': 0, 'selected': False, 'text': '<p>I recommend NDesk.Options. It makes use of Lambda functions / .NET 3.5 and it\'s very\nnice:</p>\n\n<p><a href="http://www.ndesk.org/Options" rel="nofollow noreferrer">http://www.ndesk.org/Options</a>\nWhat you basically do is:</p>\n\n<pre><code>var p = new OptionSet () {\n    { "file=",      v =&gt; data = v },&lt;br&gt;\n    { "v|verbose",  v =&gt; { ++verbose } },&lt;br&gt;\n    { "h|?|help",   v =&gt; help = v != null },&lt;br&gt;\n};\nList&lt;string&gt; extra = p.Parse (args);\n</code></pre>\n\n<p>And you\'re done.</p>\n\n<p>It support key/value pairs with custom separators, lists, single value options and toggle options</p>\n\n<p>You WILL NOT regret using it.</p>\n'}]
['https://Stackoverflow.com/questions/54978', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/4593/']