• Ookii的。CommandLine是一个命令的实用设计提供全面指令行参数分析。净的应用。 它可以让你轻松地定义需要,可选的位置和命名参数,分析的命令行,并且产生使用信息。

    Ookii的。CommandLine可以使用任何种类。网应用程序,是否控制台,Windows形式,或WPF的。 尽管受限子的功能,特别是相关的周围发生的使用帮助文本是面向主要是对台应用程序都是援引自该命令迅速,主要的命令行分析功能使用的任何应用程序需要处理的命令行参数。

    定义设定的命令行的论点,你创建的一个类,将举行自己的价值观。 构造参数和属性的这类确定的一套参数,都可以接受。 属性,可用于指定的事物,如参数名与否的参数是需要的,并说明指定用于定制的使用情况的帮助。

    命令行分析工作是在一个办法,是类似于使用的Windows置。 每个参数的有名称的,并可提供的名字命令行。 一个说法,也可以的位置,在这种情况下,它可以不提供名字。

    参数可根据需要或可选择的,并没有为支持用于开关的论点(而不需要价值,但是无论是现在或不)和参数有多种价值观。 各方面的分析,例如参数名前缀(通常a/或分),可以自定义。

  • Ookii.CommandLine है एक कमांड प्रॉम्प्ट सुविधा प्रदान करने के लिए डिजाइन व्यापक कमांड लाइन तर्क को पार्स करने के लिए है । नेट अनुप्रयोगों । यह अनुमति देता है आप करने के लिए आसानी से परिभाषित करने के लिए आवश्यक, वैकल्पिक, स्थितीय और नाम तर्क है, कमांड लाइन विश्लेषण, और उत्पन्न उपयोग के बारे में जानकारी.

    Ookii.CommandLine इस्तेमाल किया जा सकता है के साथ किसी भी तरह की .नेट आवेदन, चाहे कंसोल, विंडोज रूपों, या WPF. हालांकि एक सीमित सबसेट की कार्यक्षमता – विशेष रूप से संबंधित के आसपास पैदा करने के उपयोग में मदद पाठ – सक्षम है मुख्य रूप से की ओर कंसोल अनुप्रयोगों है कि लागू कर रहे हैं कमांड प्रॉम्प्ट से, मुख्य कमांड लाइन पार्स कार्यक्षमता प्रयोग करने योग्य है किसी भी आवेदन में की जरूरत है कि प्रक्रिया करने के लिए कमांड लाइन तर्क.

    को परिभाषित करने के लिए एक सेट के कमांड लाइन तर्क, आप बनाने के एक वर्ग का आयोजन करेगा कि अपने मूल्यों. निर्माता मापदंडों और गुणों के उस वर्ग का निर्धारण सेट का तर्क है कि स्वीकार कर रहे हैं. विशेषताएँ इस्तेमाल किया जा सकता है निर्दिष्ट करने के लिए इस तरह की चीजों के तर्क के रूप में नाम और चाहे या नहीं एक तर्क की आवश्यकता है, और विवरण निर्दिष्ट करने के लिए इस्तेमाल किया अनुकूलित करने के लिए उपयोग में मदद.

    कमांड लाइन पार्स किया जाता है कि एक तरह से करने के लिए समान है कि द्वारा इस्तेमाल के लिए Windows PowerShell. प्रत्येक तर्क एक नाम है, और हो सकता है की आपूर्ति के नाम से कमांड लाइन पर. एक तर्क यह भी हो सकता है स्थितीय, जो मामले में यह कर सकते हैं हो आपूर्ति के बिना नाम ।

    तर्क किया जा सकता है की आवश्यकता है या वैकल्पिक, और वहाँ है के लिए समर्थन स्विच तर्क (जो की जरूरत नहीं है, एक मूल्य है, लेकिन कर रहे हैं या तो मौजूद है या नहीं) और तर्कों के साथ कई मूल्यों है । के विभिन्न पहलुओं को पार्स करने, इस तरह के तर्क के रूप में नाम उपसर्ग (आम तौर पर एक / या एक), अनुकूलित किया जा सकता है ।

  • Ookii.CommandLine is a command prompt utility designed to provide comprehensive command line argument parsing for .Net applications. It allows you to easily define required, optional, positional and named arguments, parse the command line, and generate usage information.

    Ookii.CommandLine can be used with any kind of .Net application, whether Console, Windows Forms, or WPF. Although a limited subset of functionality – particularly related around generating usage help text – is geared primarily towards console applications that are invoked from the command prompt, the main command line parsing functionality is usable in any application that needs to process command line arguments.

    To define a set of command line arguments, you create a class that will hold their values. The constructor parameters and properties of that class determine the set of arguments that are accepted. Attributes can be used to specify things such as the argument name and whether or not an argument is required, and to specify descriptions used to customize the usage help.

    Command line parsing is done in a way that is similar to that used by Windows PowerShell. Each argument has a name, and can be supplied by name on the command line. An argument can also be positional, in which case it can be supplied without the name.

    Arguments can be required or optional, and there is support for switch arguments (which don't need a value but are either present or not) and arguments with multiple values. Various aspects of the parsing, such as the argument name prefix (typically a / or a -), can be customized.