В документе есть такой пример
Код: Выделить всё
///
/// Converts an image file from one format to another.
///
///
The path to the image file to be converted.
/// The name of the output from the conversion.
/// The x dimension size to crop the picture.
/// The x dimension size to crop the picture.
public static void Main(FileInfo input, FileInfo output,
int xCropSize = 0, int yCropSize = 0)
{
}
Код: Выделить всё
imageconv:
Converts an image file from one format to another.
Usage:
imageconv [options]
Options:
--input The path to the image file that is to be converted.
--output The target name of the output after conversion.
--x-crop-size The X dimension size to crop the picture.
The default is 0 indicating no cropping is required.
--y-crop-size The Y dimension size to crop the picture.
The default is 0 indicating no cropping is required.
--version Display version information
Код: Выделить всё
imageconv --input sunrise.CR2 --output sunrise.JPG
Я пробовал использовать
Код: Выделить всё
string[] args = Environment.GetCommandLineArgs();
Итак, я не понимаю что-нибудь в этом роде. Знаете ли вы, актуальна ли эта реализация? Как я могу проанализировать параметры или показать справку?
Подробнее здесь: https://stackoverflow.com/questions/788 ... ay-a-guide
Мобильная версия