[phonemgr] A PORT parameter is required by --identify too



commit fad02556bcd50a5050b6f435b48361bdd1a8c427
Author: Daniele Forsi <dforsi src gnome org>
Date:   Mon Jan 24 11:06:45 2011 +0100

    A PORT parameter is required by --identify too
    
    Also update man page with PORT description.

 data/gnome-phone-manager.1 |   16 +++++++++-------
 src/main.c                 |    2 +-
 2 files changed, 10 insertions(+), 8 deletions(-)
---
diff --git a/data/gnome-phone-manager.1 b/data/gnome-phone-manager.1
index ecf7351..abffb72 100644
--- a/data/gnome-phone-manager.1
+++ b/data/gnome-phone-manager.1
@@ -1,5 +1,4 @@
-.\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.36.
-.TH "GNOME-PHONE-MANAGER" "1" "July 2007" "Francesco Namuri" "User Commands"
+.TH "GNOME-PHONE-MANAGER" "1" "January 2011" "Francesco Namuri" "User Commands"
 .SH "NAME"
 gnome\-phone\-manager \- Manage your mobile phone
 .SH "USAGE"
@@ -38,12 +37,15 @@ Show GTK+ Options
 Show GStreamer Options
 .SS "Application Options:"
 .TP
-.BI \-\-identify " <bdaddr>"
-Show model name of the device with Bluetooth address
-.IR bdaddr .
+.BI \-\-identify\fR=\fIPORT\fR
+Show model name of the phone connected to the given
+.IR PORT
+which can be a Bluetooth address or a device file
 .TP
-.BI \-\-config
-Write the configuration file for gnokii debugging
+.BI \-\-config\fR=\fIPORT\fR
+Write the configuration file for gnokii debugging of the phone connected to the given
+.IR PORT
+which can be a Bluetooth address or a device file
 .TP
 .BI \-d,\ \fB\-\-debug\fR
 Enable debug
diff --git a/src/main.c b/src/main.c
index ed6de81..c92c68d 100644
--- a/src/main.c
+++ b/src/main.c
@@ -35,7 +35,7 @@ static gboolean debug = FALSE;
 static gboolean version = FALSE;
 
 const GOptionEntry options[] = {
-	{ "identify", '\0', 0, G_OPTION_ARG_STRING, &bdaddr_ident, N_("Show model name of a specific device"), NULL },
+	{ "identify", '\0', 0, G_OPTION_ARG_STRING, &bdaddr_ident, N_("Show model name of a specific device"), N_("PORT") },
 	{ "config", '\0', 0, G_OPTION_ARG_STRING, &bdaddr_config, N_("Write the configuration file for gnokii debugging"), N_("PORT") },
 	{ "debug", 'd', 0, G_OPTION_ARG_NONE, &debug, N_("Enable debug"), NULL},
 	{ "version", 'v', 0, G_OPTION_ARG_NONE, &version, N_("Show version information and exit"), NULL },



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]