Fixes outdated messages

This commit is contained in:
Sergi Delgado Segura
2020-02-17 14:16:58 +01:00
parent 94eb763bac
commit 6970e74da5
2 changed files with 7 additions and 7 deletions

View File

@@ -1,11 +1,11 @@
def help_add_appointment(): def help_add_appointment():
return ( return (
"NAME:" "NAME:"
"\tpython wt_cli add_appointment - Registers a json formatted appointment to the PISA server." "\tpython wt_cli add_appointment - Registers a json formatted appointment to the tower."
"\n\nUSAGE:" "\n\nUSAGE:"
"\tpython wt_cli add_appointment [command options] appointment/path_to_appointment_file" "\tpython wt_cli add_appointment [command options] appointment/path_to_appointment_file"
"\n\nDESCRIPTION:" "\n\nDESCRIPTION:"
"\n\n\tRegisters a json formatted appointment to the PISA server." "\n\n\tRegisters a json formatted appointment to the tower."
"\n\tif -f, --file *is* specified, then the command expects a path to a json file instead of a json encoded " "\n\tif -f, --file *is* specified, then the command expects a path to a json file instead of a json encoded "
"\n\tstring as parameter." "\n\tstring as parameter."
"\n\nOPTIONS:" "\n\nOPTIONS:"
@@ -17,9 +17,9 @@ def help_add_appointment():
def help_get_appointment(): def help_get_appointment():
return ( return (
"NAME:" "NAME:"
"\tpython wt_cli get_appointment - Gets json formatted data about an appointment from the PISA server." "\tpython wt_cli get_appointment - Gets json formatted data about an appointment from the tower."
"\n\nUSAGE:" "\n\nUSAGE:"
"\tpython wt_cli get_appointment appointment_locator" "\tpython wt_cli get_appointment appointment_locator"
"\n\nDESCRIPTION:" "\n\nDESCRIPTION:"
"\n\n\tGets json formatted data about an appointment from the PISA server.\n" "\n\n\tGets json formatted data about an appointment from the tower.\n"
) )

View File

@@ -376,9 +376,9 @@ def show_usage():
"\n\tget_appointment \tGets json formatted data about an appointment from the PISA server." "\n\tget_appointment \tGets json formatted data about an appointment from the PISA server."
"\n\thelp \t\t\tShows a list of commands or help for a specific command." "\n\thelp \t\t\tShows a list of commands or help for a specific command."
"\n\nGLOBAL OPTIONS:" "\n\nGLOBAL OPTIONS:"
"\n\t-s, --server \tAPI server where to send the requests. Defaults to btc.pisa.watch (modifiable in " "\n\t-s, --server \tAPI server where to send the requests. Defaults to https://teos.pisa.watch (modifiable in "
"__init__.py)" "config.py)"
"\n\t-p, --port \tAPI port where to send the requests. Defaults to 9814 (modifiable in __init__.py)" "\n\t-p, --port \tAPI port where to send the requests. Defaults to 443 (modifiable in conf.py)"
"\n\t-d, --debug \tshows debug information and stores it in wt_cli.log" "\n\t-d, --debug \tshows debug information and stores it in wt_cli.log"
"\n\t-h --help \tshows this message." "\n\t-h --help \tshows this message."
) )