From 1d7c1c2894b7899626b1623106841c933408a8da Mon Sep 17 00:00:00 2001 From: tobast Date: Wed, 28 Dec 2011 12:34:35 +0100 Subject: [PATCH] Work over manpage. Short manpage now working. --- data.h | 25 +++++++++++++++++- manpage | 80 --------------------------------------------------------- 2 files changed, 24 insertions(+), 81 deletions(-) delete mode 100644 manpage diff --git a/data.h b/data.h index cb91b27..2c3f4b3 100644 --- a/data.h +++ b/data.h @@ -59,7 +59,30 @@ enum FlagParameter { #define SOFT_VERSION "0.1 INDEV" -#define MANPAGE_SHORT "TODO write it." // TODO +#define MANPAGE_SHORT "\n"\ + "Pastebincl is a software designed to submit pastes on http://pastebin.com/ using the command-line. To see the full manpage, type \"man pastebincl\" (UNIX-like OS).\n"\ + "\n"\ + "Arguments:\n"\ + " -v, --version \n"\ + " => displays the current version and basic informations.\n"\ + " -h, -?, --help\n"\ + " => displays this text (but, logically, you already knew it).\n"\ + " --licence \n"\ + " => displays the program licence.\n"\ + " --usergen\n"\ + " => generates an encrypted user file to allow you to post as a registered pastebin user.\n"\ + " -n [name], --name=[name]\n"\ + " => sets [name] as the paste name.\n"\ + " -s [syntax], --syntax=[syntax]\n"\ + " => sets [syntax] as the paste syntax.\n"\ + " --syntaxlist\n"\ + " => Displays the full list of -s possible arguments.\n"\ + " -e [expire_time], --expire=[expire_time]\n"\ + " => sets [expire_time] as the paste expiration time.\n"\ + " -p, --private\n"\ + " => posts the paste as a \"private\" one.\n"\ + " -g, --guest\n"\ + " => posts the paste without using the account set with --usergen.\n" #endif//DEF_DATA diff --git a/manpage b/manpage deleted file mode 100644 index 68812a7..0000000 --- a/manpage +++ /dev/null @@ -1,80 +0,0 @@ -NAME - PastebinCL - Pastebin Commnd-Line, posts a "paste" on http://pastebin.com/ - -SYNOPSIS - pastebincl [options] - -DESCRIPTION - PastebinCL is a program which sends a "paste" at http://pastebin.com/ using a command-line interface. - - ARGUMENTS - - The possible arguments are: - - -v, --version - Prints the program version and basic informatons, and then return. - - -h, -?, --help - Prints a short help, and then return. - - --licence - Prints the program licence, and then return. - - --usergen - Generates an "users" file for the software with the informations given after. - - -n [name], --name=[name] - Defines [name] as the paste name. - - -s [syntax], --syntax=[syntax] - Defines [syntax] as the syntax highlighting pattern of your text, eg. "c" or "lolcode" (see the full list on http://pastebin.com/). - To display the complete list, run "pastebincl --syntaxlist". - - --syntaxlist - Displays the complete list of "syntax" parameters (see "-s"). - - -e [expire_time], --expire [expire_time] - Defines [expire_time] as the time before the paste expires. Possible values : - - N = Never - - 10M = 10 Minutes - - 1H = 1 Hour - - 1D = 1 Day - - 1M = 1 Month - - -p, --private - Posts a private past instead of a public one. A private paste willn't be displayed in the latest pastes, neither than be indexed by search engines. - - -g, --guest - Posts the paste as a guest. It's the default option if no configuration file was set. - - USAGE - - When you run pastebincl, it will wait for user entry until you pressed ctrl+D. - Then, it will send the text on pastebin with the options given. - - POST AS A REGISTERED USER - - To post as a registered user, you must generate a file containing your username and password. - To do so, use the software named "pastebincl --usergen". - -EXAMPLES - To post a paste without options: - $ pastebincl - (type your text, then ctrl+D) - - To post without options a file named "foo.txt" - $ cat foo.txt | pastebincl - - To post a paste named "foo", in C language, privately, which expires in 10 minutes - $ pastebincl -n foo -s c -e 10M -p - (type your text, then ctrl+D) - -AUTHOR - Both pastebincl and this manpage were written by Théophile BASTIAN (aka. Tobast) . - -LICENCE - Pastebincl is under GNU GPL licence, as published by the Free Software Fundation on version 3. - -REPORTING BUGS - Please report every bug you encounter to . -