1. 程式人生 > >IDL command line arguments

IDL command line arguments

-arg

Syntax: -arg value

Specifies a single command line option to be saved for later access via the COMMAND_LINE_ARGS function. The value string is saved. Multiple -arg switches are allowed; the values are saved in the order specified. The -arg option can be used to pass program-specific information from the command line to IDL programs.

-args

Syntax: -args value1 value2 ... valueN

Specifies one or more command line options to be saved for later access via the COMMAND_LINE_ARGS function. When IDL sees the -args option, it takes any command-line arguments that follow it and saves them all. There can only be one -args option on an IDL command line, and it is always the final option. The -args

 switch can be used with the -arg switch; if both switches are specified, occurrences of -arg must come first, and the values specified by -args are saved following any values specified by -arg.

The COMMAND_LINE_ARGS function returns strings supplied by the user when IDL was started with the -arg

 or -args command line options. If either of these options is specified at the command line when IDL is started, IDL saves them without examining their values or attaching any special meaning to them.


Note
The shell performs its normal interpretation of wildcards and shell metacharacters before the values of the -arg or -args command line options are passed to IDL.

Strings specified at the command line can be retrieved at any time within the IDL session via the COMMAND_LINE_ARGS function. This mechanism can be used to pass special application-defined values to a program written in the IDL language.

Syntax

Result = COMMAND_LINE_ARGS( [, COUNT=variable] )

Return Value

If any -arg or -args options were specified at the command line when IDL was started, COMMAND_LINE_ARGS returns a string array containing the specified values, one value per element. The values are returned in the order specified by the user on the command line. If no such options were specified, a NULL scalar string is returned.

Keywords

COUNT

Set this keyword equal to a named variable that will contain the number of retrieved arguments. If no arguments were specified, the variable will contain 0.

The COMMAND_LINE_ARGS routine was introduced in IDL 6.2, allowing IDL programs to access command line args passed to IDL when starting it. For example, to pass command line arguments into the MYPROGRAM routine, call IDL like below:

$ idl -e "myprogram" -args a b c

Then, in MYPROGRAM, the command line arguments could be retrieved with:

args = command_line_args()

The args string array would contain “a”, “b”, and “c”. To make it more convenient to launch IDL this way, you can create a script that calls IDL in the proper way, passing arguments of the script to arguments listed after the -args in the IDL call. If you name the wrapper script myprogram also, your calls would look like:

$ myprogram a b c


相關推薦

IDL command line arguments

-arg Syntax: -arg value Specifies a single command line option to be saved for later access via the COMMAND_LINE_ARGS function. The 

go報錯# command-line-arguments undefined: *解決方案

問題描述(Windows下,Linux下報錯見最後) 使用goland開發。同一個包下兩個或多個go檔案,包名為main,點選其中一個檔案的main()方法執行時報錯,類似下圖 點選TestLink.go中的main方法執行後報錯: 問題原因 main 包中的

How to access command line arguments in Golang > LinxLabs

You need a ‘golang’ environment in Linux to try the example. I’ve explained how to install ‘golang’ in this blog post In this article, we will see how to

學以致用——Java原始碼——命令列引數的用法示例(任意個數字連乘)(Command-Line Arguments

參考文章: 1. 命令列中執行帶引數的java程式(Command-Line Arguments),https://blog.csdn.net/hpdlzu80100/article/details/51851440  2. 學以致用——Java原始碼——使

argparse — Parser for command-line options, arguments and sub-commands

The argparse module makes it easy to write user-friendly command-line interfaces. The program defines what arguments it requires, and argparse wil

[Linux] The Linux Command Line

prop 歷史 系列 復制文件 換行 his 刪除 可執行 符號 date: 顯示當前系統的時間和日期 cal: 顯示當月的日歷 df: 查看磁盤驅動器當前的可用空間 free: 顯示可用內存 exit: 關閉終端窗口 pwd: 查看當前工作目錄 cd: 改變工作目錄 ls

【原】The Linux Command Line - Redirection

report tee edi each new linux c pattern ext rom ● cat - Concatenate files● sort - Sort lines of text● uniq - Report or omit repeated line

【原】The Linux Command Line - Processes

all task rep shutdown ack port report proc name ps - report a snapshot of current processes top - display tasks job - list active jobs bg

MYSQL報警:Warning: Using a password on the command line interface can be insecure.

color col fig文件 成功 efault 如果 輸入 nbsp pre 問題描述:執行下面的語句,sql是執行成功了,但是出現了一個報警,報警看上去始終不舒服 mysql -hip -Pport -uuser -ppassword -e "use db;de

Warning: Using a password on the command line interface can be insecure.解決辦法

com localhost log dev title war cli too edit 轉自 http://www.cnblogs.com/sunss/p/6256706.html 被一個小朋友問到,直接公布答案: If your MySQL cli

mysql command line client 使用命令

數據庫服務器 csdn 地址 ase source 服務 ace rep oot 原文地址:http://blog.csdn.net/jack2009win/article/details/6319261 感覺寫的挺好,復制一下。 分號不能忘分號不能忘分號不能忘 重要的事情

Python -- Scrapy 命令行工具(command line tools)

string price rri 爬取 方式 edi ref www. 一般來說 結合scrapy 官方文檔,進行學習,並整理了部分自己學習實踐的內容 Scrapy是通過 scrapy 命令行工具進行控制的。 這裏我們稱之為 “Scrapy tool&rdqu

外顯子分析彈錯解決方案:Invalid command line: Cannot process the provided BAM/CRAM file(s) because they were not indexed.

highlight exe line light logs mtools and cannot not in 出現這種問題說明bam/cram文件沒有進行index. Samtool能解決這個問題,以bam文件為例,輸入以下命令行即可解決問題: /path/to/y

Idea報錯Command line is too long

文件夾 prop 報錯 class nbsp gpo 問題 line per 需要在該項目文件夾下.idea/workspace.xml中添加 <component name="PropertiesComponent"> ... <propert

Jenkins參數化構建 - Maven Command Line傳遞TestNG的參數

main version 使用 blog and htm examples cte ces 1. Maven使用 -D參數名稱 將參數傳遞至所運行項目 Maven指定TestNg.xml文件 clean test -DsuiteXmlFile=src/main/res

MysqL5.7在使用mysqldump命令備份數據庫報錯:mysqldump: [Warning] Using a password on the command line interface can be insecure.

導出 interface password spm 可能 tmp efm extra tps 在阿裏雲服務器增加一個shell腳本定時備份數據庫腳本執行任務時,測試性的執行了備份命令,如下 [root@iZ2ze503xw2q1fftv5rhboZ mysql_bak

iOS - Xcode command line tools

href med 命令 name ranlib ase mac ipo yacc 1、Xcode command line tools 安裝 如果你不是一名 iOS 或 OS X 開發者,可以跳過安裝 XCode 的過程,直接安裝 Xcode command line t

scrapy1.0手冊--01--命令行工具(Command line tools)

odi 下載器 頁面 開發者 lba 全局 支持 second ocs 命令行工具(Command line tools) 0.10 新版功能. Scrapy是通過 scrapy 命令行工具進行控制的。 這裏我們稱之為 “Scrapy tool” 以用來和子命令進行區分

An annotation based command line parser

library wait fig edit close to do opera pac ould JCommander star1000+ This is an annotation based parameter parsing framework for Java 8

mac-command-line-doing

復制 .html mkdir html CP 重名 touch 指定 tor 創建文件夾 mkdir myDirectory 新建文件 touch a.html 編輯文件 vim a.html 刪除文件 rm a.html 刪除整個文件夾 rm -rf m