Version 0.0.1
[guestfs-browser.git] / cmdline.mli
1 (* Guestfs Browser.
2  * Copyright (C) 2010 Red Hat Inc.
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License along
15  * with this program; if not, write to the Free Software Foundation, Inc.,
16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17  *)
18
19 (** Handle the command line arguments. *)
20
21 type cli_request =
22   | Connect_to_libvirt of string option
23   | Open_disk_image of string list
24   | Empty_window
25       (** The initial action requested by the user on the command line.
26           For example if the command line contains --connect then
27           [Connect_to_libvirt] is returned by {!command_line}. *)
28
29 val command_line : unit -> cli_request
30   (** Read the command line and return {!cli_request}. *)