[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r33000 - gnunet-java/doc
From: |
gnunet |
Subject: |
[GNUnet-SVN] r33000 - gnunet-java/doc |
Date: |
Wed, 9 Apr 2014 16:37:31 +0200 |
Author: dold
Date: 2014-04-09 16:37:31 +0200 (Wed, 09 Apr 2014)
New Revision: 33000
Modified:
gnunet-java/doc/gnunet-java-tutorial.pdf
gnunet-java/doc/gnunet-java-tutorial.tex
Log:
change Option to Argument annotation in tutorial
Modified: gnunet-java/doc/gnunet-java-tutorial.pdf
===================================================================
(Binary files differ)
Modified: gnunet-java/doc/gnunet-java-tutorial.tex
===================================================================
--- gnunet-java/doc/gnunet-java-tutorial.tex 2014-04-09 14:25:28 UTC (rev
32999)
+++ gnunet-java/doc/gnunet-java-tutorial.tex 2014-04-09 14:37:31 UTC (rev
33000)
@@ -124,15 +124,17 @@
\subsection{Adding and using command line arguments}
Command line options are added by annotating members of your
-{\tt org.gnunet.util.Program} subclass with the address@hidden
+{\tt org.gnunet.util.Program} subclass with the address@hidden
Here is a simple example:
\begin{lstlisting}[language=java]
+import org.gnunet.util.getopt.*;
+[...]
new Program(args) {
- @Option(
+ @Argument(
shortname = "n",
longname = "name",
- action = OptionAction.STORE_STRING,
+ action = Argument.STORE_STRING,
description = "the name of the person you want to greet")
String name = "Jane Doe"; // default value if option is missing
[...]
@@ -147,7 +149,7 @@
be set to the given argument. If the \texttt{name} option is missing,
the field will keep the value specified in the constructor or the field's
initializer.
-The address@hidden annotation can not only be used with Strings, but also
+The address@hidden annotation can not only be used with Strings, but also
with booleans and numbers. These are a few of the available options:
\begin{itemize}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r33000 - gnunet-java/doc,
gnunet <=