|"filename.ext"||File to open in Visustin. Unless a full path is given, the path is relative to the current working directory. The following files are supported:|
|/Lang||Language of source code file. See table below. /Lang is optional, but highly recommended. If /Lang is omitted, Visustin attempts to auto-detect the language.|
|/DRAW||After opening a source file, draw a flow chart.|
|/BIRDSEYE||After opening a source file, draw a birdseye flow chart.|
|/PREVIEW||Open a file and bring up the Print Preview dialog. Visustin will stay running when the dialog closes.|
|Open a file and bring up the Print Preview dialog. Visustin will close when the dialog closes. This switch is provided mainly for quick printing of image and Editor files.|
|/PRINTTO "printer"||The same as /PRINT, but the printer named "printer" will be used. This switch is provided mainly for dragging image and Editor files onto a printer icon (Windows shell verb printto).|
|/?||Display command line syntax and file extension rules. Also available through the Command line syntax command in the Help menu.|
If a source code file is passed as a parameter with none of /DRAW, /BIRDSEYE, /PREVIEW, /PRINT or /PRINTTO, the file is opened but no flow chart is drawn.
visustin.exe "myfile.cpp" /DRAW
visustin.exe "myfile.cpp" /C /DRAW
visustin.exe "myfile.cob" /COBFIX /BIRDSEYE
visustin.exe "myfile.frm" /VB /PREVIEW
visustin.exe "mypic.gif" /PRINT
visustin.exe "mypic.gif" /PRINTTO "HP LaserJet 5L"
|Switch||Language mode||Alternative switch|
|/COBFIX||COBOL (fixed, columns 7-72)|
|/COBFREE||COBOL (free format)|
|/COBVAR||COBOL (variable, columns 7-)|
|/FORFIX||Fortran (fixed, columns 7-72)|
|/FORFREE||Fortran (free format)|
|/RPG4FREE||RPG IV **FREE|
|/VB||Visual Basic, VBA||/VB6, /VBA|
|/VB.NET||Visual Basic .NET|
The switches in the leftmost column are what Visustin uses. Use of the alternative switches is discouraged.
/Lang is an optional but highly recommended switch. If /Lang is omitted, Visustin attempts to auto-detect the language of the source code file. It is not always possible, though. Auto-detection is attempted as follows:
1. Detect language by file extension. If file extension clearly tells the language, select that language. If several languages use the same extension, auto-detection fails. To fix, set the desired language as your favorite language (in the Languages menu). Favorite languages are given priority in auto-detection.
2. Detect by Unix
#! operator. If the code starts with the Unix
#! operator, the language is set as per this setting. This rule only works with certain Unix scripts. Example: Load
#!/bin/sh files as Bourne shell code and
#!/bin/csh files as C-shell code.
3. If auto-detection fails, default to previously selected language.
You can test auto-detection by dragging a file from Windows and dropping it to the language dropdown list of the main screen of Visustin.
Current file extension rules and switches can be viewed by choosing Command line syntax in the Help menu. A dash (-) next to an extension means auto-detection is not working for this file extension. Attempt selecting the language as a favorite in the Language menu. An asterisk (*) marks extensions affected by your favorite language settings.
©Aivosto Oy – Visustin Help