2018-09-08 01:26:45 +08:00
|
|
|
|
#Region "Microsoft.VisualBasic::75651adef0929e39fb916325c72c3023, Microsoft.VisualBasic.Core\CommandLine\Reflection\CLITypes.vb"
|
2018-08-02 20:14:48 +08:00
|
|
|
|
|
2018-10-25 18:46:39 +08:00
|
|
|
|
' Author:
|
|
|
|
|
|
'
|
|
|
|
|
|
' asuka (amethyst.asuka@gcmodeller.org)
|
|
|
|
|
|
' xie (genetics@smrucc.org)
|
|
|
|
|
|
' xieguigang (xie.guigang@live.com)
|
|
|
|
|
|
'
|
|
|
|
|
|
' Copyright (c) 2018 GPL3 Licensed
|
|
|
|
|
|
'
|
|
|
|
|
|
'
|
|
|
|
|
|
' GNU GENERAL PUBLIC LICENSE (GPL3)
|
|
|
|
|
|
'
|
|
|
|
|
|
'
|
|
|
|
|
|
' This program is free software: you can redistribute it and/or modify
|
|
|
|
|
|
' it under the terms of the GNU General Public License as published by
|
|
|
|
|
|
' the Free Software Foundation, either version 3 of the License, or
|
|
|
|
|
|
' (at your option) any later version.
|
|
|
|
|
|
'
|
|
|
|
|
|
' This program is distributed in the hope that it will be useful,
|
|
|
|
|
|
' but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
|
' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
|
' GNU General Public License for more details.
|
|
|
|
|
|
'
|
|
|
|
|
|
' You should have received a copy of the GNU General Public License
|
|
|
|
|
|
' along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2018-08-02 20:14:48 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-10-25 18:46:39 +08:00
|
|
|
|
' /********************************************************************************/
|
2018-08-02 20:14:48 +08:00
|
|
|
|
|
2018-10-25 18:46:39 +08:00
|
|
|
|
' Summaries:
|
2018-08-02 20:14:48 +08:00
|
|
|
|
|
2018-10-25 18:46:39 +08:00
|
|
|
|
' Enum CLITypes
|
|
|
|
|
|
'
|
|
|
|
|
|
'
|
|
|
|
|
|
'
|
|
|
|
|
|
'
|
|
|
|
|
|
'
|
|
|
|
|
|
'
|
|
|
|
|
|
'
|
|
|
|
|
|
' /********************************************************************************/
|
2018-08-02 20:14:48 +08:00
|
|
|
|
|
|
|
|
|
|
#End Region
|
|
|
|
|
|
|
|
|
|
|
|
Imports Microsoft.VisualBasic.ApplicationServices
|
|
|
|
|
|
|
|
|
|
|
|
Namespace CommandLine.Reflection
|
|
|
|
|
|
|
|
|
|
|
|
''' <summary>
|
|
|
|
|
|
''' The data type enumeration of the target optional parameter switch.
|
|
|
|
|
|
''' </summary>
|
|
|
|
|
|
''' <remarks></remarks>
|
|
|
|
|
|
Public Enum CLITypes As Byte
|
|
|
|
|
|
|
2018-10-25 18:46:39 +08:00
|
|
|
|
''' <summary>
|
|
|
|
|
|
''' 其他未知的未定义类型
|
|
|
|
|
|
''' (如果是未定义的类型,则在自动生成命令行参数值的时候会被忽略掉,这个时候会需要你自己进行
|
|
|
|
|
|
''' 手动处理这些未定义类型的参数值)
|
|
|
|
|
|
''' </summary>
|
|
|
|
|
|
Undefined = 0
|
|
|
|
|
|
|
2018-08-02 20:14:48 +08:00
|
|
|
|
''' <summary>
|
|
|
|
|
|
''' File/directory path, is equals most string.
|
2018-10-25 18:46:39 +08:00
|
|
|
|
''' (对于指定为路径类型的参数值,在生成命令行的时候会自动调用<see cref="CLIPath"/>函数,
|
|
|
|
|
|
''' 在Linux系统之中,文件夹也是一种文件)
|
2018-08-02 20:14:48 +08:00
|
|
|
|
''' </summary>
|
|
|
|
|
|
File = 1
|
|
|
|
|
|
|
|
|
|
|
|
''' <summary>
|
2018-10-25 18:46:39 +08:00
|
|
|
|
''' ``String``.(对于指定为字符串类型的参数,在调用的时候回自动调用
|
|
|
|
|
|
''' <see cref="Utils.CLIToken"/>函数)
|
2018-08-02 20:14:48 +08:00
|
|
|
|
''' </summary>
|
|
|
|
|
|
''' <remarks></remarks>
|
|
|
|
|
|
[String] = 2
|
|
|
|
|
|
''' <summary>
|
|
|
|
|
|
''' Int
|
|
|
|
|
|
''' </summary>
|
|
|
|
|
|
''' <remarks></remarks>
|
|
|
|
|
|
[Integer] = 3
|
|
|
|
|
|
''' <summary>
|
|
|
|
|
|
''' Real
|
|
|
|
|
|
''' </summary>
|
|
|
|
|
|
''' <remarks></remarks>
|
|
|
|
|
|
[Double] = 4
|
|
|
|
|
|
''' <summary>
|
2018-10-25 18:46:39 +08:00
|
|
|
|
''' This is a flag value, if this flag presents in the CLI, then this named Boolean
|
|
|
|
|
|
''' value is ``TRUE``, otherwise is ``FALSE``.
|
2018-08-02 20:14:48 +08:00
|
|
|
|
''' </summary>
|
|
|
|
|
|
[Boolean] = 5
|
2018-10-25 18:46:39 +08:00
|
|
|
|
|
|
|
|
|
|
' 下面是高级类型
|
|
|
|
|
|
|
|
|
|
|
|
''' <summary>
|
|
|
|
|
|
''' This cli argument parameter value is kind of binary value,
|
|
|
|
|
|
''' we can decode this value into binary data chunks.
|
|
|
|
|
|
'''
|
|
|
|
|
|
''' (这个命令行参数值是base64字符串,可以看作为一个二进制输入参数)
|
|
|
|
|
|
''' </summary>
|
|
|
|
|
|
Base64 = 100
|
2018-08-02 20:14:48 +08:00
|
|
|
|
End Enum
|
|
|
|
|
|
End Namespace
|