Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.1.1 - English

Change language to:
Français - 日本語 - Português - Русский

Please note that the recommended version of Scilab is 2024.0.0. This page might be outdated.
See the recommended documentation of this function

Scilab Help >> Scilab > Configuration > sciargs

sciargs

scilab command line arguments

Syntax

args = sciargs()

Description

This function returns a column vector of character strings containing the arguments of the Scilab command line. args(1) contains the absolute path and filename of the executable file actually launched (sometimes through a batch file).

This function corresponds to the getarg function in C language.

Examples

While the current Scilab session has been opened through the command

C:\Users\Me> C:\SCIdir\bin\scilab -nw -nb -noatomsautoload -args "Hello %USERNAME%" \"%cd%\"

we then get

a = sciargs()
--> a = sciargs()
 a  =
! c:\SCIdir\bin\WScilex-cli.exe !
! -nb                           !
! -noatomsautoload              !
! -args                         !
! Hello John                    !
! "C:\Users\Me"                 !

Let's note that in scilab -nw the "-nw" option is used by the scilab batch file to route the call to WScilex-cli.exe, without forwarding "-nw". Therefore, this one is not returned by sciargs().

See also

  • scilab — runs Scilab in interactive or batch mode with command line options
  • getenv — get the value of an environment variable
  • macrovar — variables of function

History

VersionDescription
6.0.0 A column is returned, instead of formerly a row.
Report an issue
<< recursionlimit Configuration ver >>

Copyright (c) 2022-2023 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Mon Jan 03 14:23:19 CET 2022