示例#1
0
        protected override ProgramBase.StandardSwitches DefineCommandLine(CommandLineParser parser)
        {
            _bcdFile = new CommandLineParameter("bcd_file", "Path to the BCD file to inspect.", false);

            parser.AddParameter(_bcdFile);
            return StandardSwitches.Default;
        }
示例#2
0
        protected override StandardSwitches DefineCommandLine(CommandLineParser parser)
        {
            _portalAddress = new CommandLineParameter("portal", "Address of the iSCSI server (aka Portal) in the form <host>[:<port>], for example 192.168.1.2:3260 or 192.168.1.2", false);
            parser.AddParameter(_portalAddress);

            return StandardSwitches.UserAndPassword | StandardSwitches.Verbose;
        }
示例#3
0
        protected override StandardSwitches DefineCommandLine(CommandLineParser parser)
        {
            _host = new CommandLineParameter("host", "The name of a Mac / PC sharing its optical disk(s).  For example \"My Computer\".", true);
            parser.AddParameter(_host);

            return StandardSwitches.Default;
        }
示例#4
0
        protected override ProgramBase.StandardSwitches DefineCommandLine(CommandLineParser parser)
        {
            _vhdFile = new CommandLineParameter("vhd_file", "Path to the VHD file to inspect.", false);
            _dontCheck = new CommandLineSwitch("nc", "noCheck", null, "Don't check the VHD file format for corruption");

            parser.AddParameter(_vhdFile);
            parser.AddSwitch(_dontCheck);

            return StandardSwitches.Default;
        }
示例#5
0
        protected override StandardSwitches DefineCommandLine(CommandLineParser parser)
        {
            _dmg = new CommandLineParameter("dmg", "Path to the .dmg file from which to extract the files", isOptional: false);
            _folder = new CommandLineParameter("folder", "Paths to the folders from which to extract the files.", isOptional: false);
            _recursive = new CommandLineSwitch("r", "recursive", null, "Include all subfolders of the folder specified");

            parser.AddParameter(_dmg);
            parser.AddParameter(_folder);
            parser.AddSwitch(_recursive);

            return StandardSwitches.Default;
        }
示例#6
0
        protected override StandardSwitches DefineCommandLine(CommandLineParser parser)
        {
            _sourceFile = FileOrUriParameter("in_file", "The disk image containing the Operating System image to be cloned.", false);
            _destFile = FileOrUriParameter("out_file", "The path to the output disk image.", false);
            _labelSwitch = new CommandLineSwitch("l", "label", "name", "The volume label for the NTFS file system created.");

            parser.AddParameter(_sourceFile);
            parser.AddParameter(_destFile);
            parser.AddSwitch(_labelSwitch);

            return StandardSwitches.OutputFormatAndAdapterType | StandardSwitches.UserAndPassword | StandardSwitches.DiskSize;
        }
示例#7
0
        protected override StandardSwitches DefineCommandLine(CommandLineParser parser)
        {
            _inFile = FileOrUriParameter("in_file", "Path to the source disk.", false);
            _outFile = FileOrUriParameter("out_file", "Path to the output disk.", false);
            _translation = new CommandLineEnumSwitch<GeometryTranslation>("t", "translation", "mode", GeometryTranslation.None, "Indicates the geometry adjustment to apply for bootable disks.  Set this parameter to match the translation configured in the BIOS of the machine that will boot from the disk - auto should work in most cases for modern BIOS.");
            _wipe = new CommandLineSwitch("w", "wipe", null, "Write zero's to all unused parts of the disk.  This option only makes sense when converting to an iSCSI LUN which may be dirty.");

            parser.AddParameter(_inFile);
            parser.AddParameter(_outFile);
            parser.AddSwitch(_translation);
            parser.AddSwitch(_wipe);

            return StandardSwitches.OutputFormatAndAdapterType | StandardSwitches.UserAndPassword;
        }
示例#8
0
        protected override StandardSwitches DefineCommandLine(CommandLineParser parser)
        {
            _destFile = new CommandLineParameter("new.vhd", "Path to the VHD file to create.", false);
            _sourceFile = new CommandLineParameter("base.vhd", "For differencing disks, the path to the base disk.", true);
            _typeSwitch = new CommandLineSwitch("t", "type", "type", "The type of disk to create, one of: fixed, dynamic, diff.  The default is dynamic.");
            _blockSizeSwitch = new CommandLineSwitch("bs", "blocksize", "size", "For dynamic disks, the allocation uint size for new disk regions in bytes.  The default is 2MB.    Use B, KB, MB, GB to specify units (units default to bytes if not specified).");

            parser.AddParameter(_destFile);
            parser.AddParameter(_sourceFile);
            parser.AddSwitch(_typeSwitch);
            parser.AddSwitch(_blockSizeSwitch);

            return StandardSwitches.DiskSize;
        }
示例#9
0
        protected override StandardSwitches DefineCommandLine(CommandLineParser parser)
        {
            _isoFileParam = new CommandLineParameter("iso_file", "The ISO file to create.", false);
            _srcDir = new CommandLineParameter("sourcedir", "The directory to be added to the ISO", false);
            _bootImage = new CommandLineParameter("bootimage", "The bootable disk image, to create a bootable ISO", true);
            _volLabelSwitch = new CommandLineSwitch("vl", "vollabel", "label", "Volume Label for the ISO file.");

            parser.AddParameter(_isoFileParam);
            parser.AddParameter(_srcDir);
            parser.AddParameter(_bootImage);
            parser.AddSwitch(_volLabelSwitch);

            return StandardSwitches.Default;
        }
示例#10
0
        protected override ProgramBase.StandardSwitches DefineCommandLine(CommandLineParser parser)
        {
            _diskFiles = FileOrUriMultiParameter("disk", "The disks to inspect.", false);
            _inFilePath = new CommandLineParameter("file_path", "The path of the file to extract.", false);
            _outFilePath = new CommandLineParameter("out_file", "The output file to be written.", false);
            _diskType = new CommandLineSwitch("dt", "disktype", "type", "Force the type of disk - use a file extension (one of " + string.Join(", ", VirtualDisk.SupportedDiskTypes) + ")");
            _hexDump = new CommandLineSwitch("hd", "hexdump", null, "Output a HexDump of the NTFS stream to the console, in addition to writing it to the output file.");

            parser.AddMultiParameter(_diskFiles);
            parser.AddParameter(_inFilePath);
            parser.AddParameter(_outFilePath);
            parser.AddSwitch(_diskType);
            parser.AddSwitch(_hexDump);

            return StandardSwitches.UserAndPassword | StandardSwitches.PartitionOrVolume;
        }
示例#11
0
 public void AddParameter(CommandLineParameter parameter)
 {
     _params.Add(parameter);
 }
示例#12
0
        protected override StandardSwitches DefineCommandLine(CommandLineParser parser)
        {
            _translation = new CommandLineEnumSwitch<GeometryTranslation>("t", "translation", "mode", GeometryTranslation.Auto,"Indicates the geometry adjustment to apply.  Set this parameter to match the translation configured in the BIOS of the machine that will boot from the disk - auto should work in most cases for modern BIOS.");
            _volumes = new CommandLineMultiParameter("volume", "Volumes to clone.  The volumes should all be on the same disk.", false);
            _destDisk = new CommandLineParameter("out_file", "Path to the output disk image.", false);

            parser.AddSwitch(_translation);
            parser.AddMultiParameter(_volumes);
            parser.AddParameter(_destDisk);

            return StandardSwitches.OutputFormatAndAdapterType;
        }
示例#13
0
 public void AddParameter(CommandLineParameter parameter)
 {
     _params.Add(parameter);
 }