Warning, /frameworks/kjs/docs/kjs5/man-kjs5.1.docbook is written in an unsupported language. File is not indexed.
0001 <?xml version="1.0" ?> 0002 <!DOCTYPE refentry PUBLIC "-//KDE//DTD DocBook XML V4.5-Based Variant V1.1//EN" "dtd/kdedbx45.dtd" [ 0003 <!ENTITY % English "INCLUDE"><!-- change language only here --> 0004 ]> 0005 0006 <refentry lang="&language;"> 0007 0008 <refentryinfo> 0009 <title>Programming Tool</title> 0010 0011 <author> 0012 <firstname>Harri</firstname> 0013 <surname>Porten</surname> 0014 <affiliation> 0015 <address><email>porten@kde.org</email></address> 0016 </affiliation> 0017 </author> 0018 0019 <date>2014-05-04</date> 0020 <releaseinfo>Frameworks 5.0</releaseinfo> 0021 <productname>KDE Frameworks</productname> 0022 0023 </refentryinfo> 0024 0025 <refmeta> 0026 <refentrytitle><command>kjs5</command></refentrytitle> 0027 <manvolnum>1</manvolnum> 0028 </refmeta> 0029 0030 <refnamediv> 0031 <refname><command>kjs5</command></refname> 0032 <refpurpose>&kde; ECMAScript compatible interpreter</refpurpose> 0033 </refnamediv> 0034 0035 <refsynopsisdiv> 0036 <title>Synopsis</title> 0037 0038 <cmdsynopsis> 0039 <command>kjs5</command> 0040 0041 <group> 0042 <arg choice="opt">--help</arg> 0043 <arg choice="opt">-help</arg> 0044 <arg choice="opt">-h</arg> 0045 </group> 0046 <group> 0047 <arg choice="opt">--version</arg> 0048 <arg choice="opt">-version</arg> 0049 <arg choice="opt">-v</arg> 0050 </group> 0051 <group> 0052 <arg choice="opt">-e<replaceable> statement</replaceable></arg> 0053 </group> 0054 <group> 0055 <arg choice="plain"><replaceable>script</replaceable></arg> 0056 </group> 0057 </cmdsynopsis> 0058 </refsynopsisdiv> 0059 0060 <refsect1> 0061 <title>Description</title> 0062 0063 <para><command>kjs</command> is KDE ECMAScript/JavaScript engine. 0064 </para> 0065 </refsect1> 0066 0067 <refsect1> 0068 <title>Application Options</title> 0069 <variablelist> 0070 0071 <varlistentry> 0072 <term><option>--help</option>,<option>-help</option>,<option>-h</option></term> 0073 <listitem> 0074 <para> 0075 Show <command>kjs5</command> usage. 0076 </para> 0077 </listitem> 0078 </varlistentry> 0079 0080 <varlistentry> 0081 <term><option>--version</option>,<option>-version</option>,<option>-v</option></term> 0082 <listitem> 0083 <para> 0084 Show <command>kjs5</command> version. 0085 </para> 0086 </listitem> 0087 </varlistentry> 0088 0089 <varlistentry> 0090 <term><option>-e</option><parameter> statement</parameter></term> 0091 <listitem> 0092 <para>Executes the statement and exits. For example:</para> 0093 <screen><command>kjs5</command> -e "print('hello world')"</screen> 0094 </listitem> 0095 </varlistentry> 0096 0097 <varlistentry> 0098 <term><parameter>script</parameter></term> 0099 <listitem> 0100 <para>Executes the statements included in file <parameter>script</parameter>.</para> 0101 </listitem> 0102 </varlistentry> 0103 0104 </variablelist> 0105 0106 </refsect1> 0107 0108 <refsect1> 0109 <title>Usage</title> 0110 <para> 0111 <command>kjs5</command> <parameter>file</parameter>, as many other interpreters, when called without parameters 0112 uses a line editor to enter statements, showing the prompt 0113 <literallayout>JS></literallayout> 0114 To exit the line editor type <command>quit()</command> or press <command>Ctrl+D</command>. 0115 </para> 0116 </refsect1> 0117 0118 <refsect1> 0119 <title>See Also</title> 0120 <para><replaceable>kjscmd5</replaceable>(1)</para> 0121 </refsect1> 0122 0123 <refsect1> 0124 <title>Bugs</title> 0125 <para>Please use <ulink url="http://bugs.kde.org">KDE's bugtracker</ulink> to report bugs.</para> 0126 </refsect1> 0127 0128 </refentry>