diff options
author | Guillermo Ramos | 2019-06-30 13:26:27 +0200 |
---|---|---|
committer | Guillermo Ramos | 2019-06-30 13:26:27 +0200 |
commit | 95faae2a4d687a189127621faaeecf17a040c3eb (patch) | |
tree | c4e0d078cf71dbb36d71fe0701572a30257543a9 /tgsend | |
parent | 5ac0ec6c1557c08716f5a39a3fbd3f1d272422d7 (diff) | |
download | tgutils-95faae2a4d687a189127621faaeecf17a040c3eb.tar.gz |
Improve man pages formatting (lists, italics, etc)
Diffstat (limited to 'tgsend')
-rwxr-xr-x | tgsend | 57 |
1 files changed, 43 insertions, 14 deletions
@@ -57,34 +57,63 @@ __END__ =head1 NAME -tgsend - Send message to a Telegram chat using a bot token +tgsend - Send message to one or more Telegram chats =head1 SYNOPSIS -tgsend [-h | --help] [-v] +B<tgsend> [B<-h> | B<--help>] [B<-v>] -tgsend [options] [chatid1 chatid2 ...] +B<tgsend> [I<options>] I<chat_ids>... =head1 OPTIONS - --pretend | -p Do not actually do anything - (--token | -t) <token> Bot token (see AUTHENTICATION) - --version Show version - --verbose | -v Show more information (combine with -h to see full manual) - --help | -h Show this message +=over + +=item B<--pretend>, B<-p> + +Do not actually do anything + +=item B<--token>=I<token>, B<-t> I<token> + +Bot token (see B<AUTHENTICATION>) + +=item B<--version> + +Show version + +=item B<--verbose>, B<-v> + +Show more information (combine with B<-h> to see full manual) + +=item B<--help>, B<-h> + +Show this message + +=back =head1 DESCRIPTION -This program sends its standard input to the Telegram chats whose IDs are passed -as arguments, using the given bot token. +This program will send its standard input to the given Telegram I<chat_ids>, from +the bot identified by I<token>. =head1 AUTHENTICATION To get the bot token, this program will check (in order): - - The "--token" CLI argument - - The "TGUTILS_TOKEN" environment variable - - The contents of "$XDG_CONFIG_HOME/tgutils_token" - (usually ~/.config/tgutils_token) +=over 2 + +=item - + +The B<--token> CLI argument + +=item - + +The B<TGUTILS_TOKEN> environment variable + +=item - + +The contents of I<$XDG_CONFIG_HOME>B</tgutils_token> (usually B<~/.config/tgutils_token>) + +=back =cut |