[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

svn usage text

From: Bruce Korb <bkorb_at_cruzio.com>
Date: 2000-10-14 03:44:47 CEST

For your (possible) amusement, attached is the
option definition file that can be used to generate
a program that produces this usage text (and processes
the options, too). It also might make the AutoOpts
pages more comprehensible?

svn - Subversion - Ver. Fri Oct 13 18:31:37 PDT 2000
USAGE: svn [ -<flag> [<val>] | --<name>[{=| }<val>] ]... \
                <command> [ <cmd-specific-opts> ... ] [ <cmd-args> ]
  Flg Arg Option-Name Description
   -x YES xml-file XML Interfacing file
   -d YES target-dir destination directory
   -s YES ancestor-path source directory
   -r YES revision Specified revision
   -f no force force action to be taken
   -v opt version Output version information and exit
   -? no help Display usage information and exit
   -! no more-help Extended usage information passed thru pager

Options may be specified by doubled hyphens and their name
or by a single hyphen and the flag character/option value.

WHERE: ``<command>'' may be any of:

         checkout update add delete commit

or their aliases. For specific help on one of these commands,
use ``--help'' as a command specific option.

/* -*- Mode: text -*- */

AutoGen Definitions options;

prog_name = svn;
prog_title = Subversion;
argument = "<command> [ <cmd-specific-opts> ... ] [ <cmd-args> ]";
long_opts;
version = `date`;
rcfile = "$$/../share/svn/svnrc",
             "$HOME", ".";

test_main = yes;

copyright = {
    date = 2000;
    owner = CollabNet;
    type = bsd;
    author = "Karl Fogel, et. al.";
};

explain =
"WHERE: ``<command>'' may be any of:

         checkout update add delete commit

or their aliases. For specific help on one of these commands,
use ``--help'' as a command specific option.";

flag = {
    name = xml_file;
    value = x;
    descrip = "XML Interfacing file";
    flag_arg = ":";
};

flag = {
    name = target_dir;
    value = d;
    descrip = "destination directory";
    flag_arg = ":";
};

flag = {
    name = ancestor_path;
    value = s;
    descrip = "source directory";
    flag_arg = ":";
};

flag = {
    name = revision;
    value = r;
    descrip = "Specified revision";
    flag_arg = ":";
};

flag = {
    name = force;
    value = f;
    descrip = "force action to be taken";
};
Received on Sat Oct 21 14:36:11 2006

This is an archived mail posted to the Subversion Dev mailing list.