added help fluff text for arguments

This commit is contained in:
alterNERDtive 2020-01-06 17:28:30 +01:00
parent 1dd8958ed5
commit 1508ccf5c5

View file

@ -32,18 +32,18 @@ subparsers = parser.add_subparsers(title="subcommands", help="sub-command help",
parser_bodycount = subparsers.add_parser("bodycount", parser_bodycount = subparsers.add_parser("bodycount",
help="Returns the number of bodies in a system. Will exit with code 1 on " help="Returns the number of bodies in a system. Will exit with code 1 on "
+ "server error and code 2 if the system could not be found in EDSM.") + "server error and code 2 if the system could not be found in EDSM.")
parser_bodycount.add_argument("system", nargs=1) parser_bodycount.add_argument("system", nargs=1, help="system to query")
parser_distance = subparsers.add_parser("distancebetween", parser_distance = subparsers.add_parser("distancebetween",
help="Calculates the distance between two systems. Will exit with code 1 " help="Calculates the distance between two systems. Will exit with code 1 "
+ "on server error and code 2 if (one of) the systems could not be found " + "on server error and code 2 if (one of) the systems could not be found "
+ "on EDSM.") + "on EDSM.")
parser_distance.add_argument("system", nargs=2) parser_distance.add_argument("system", nargs=2, help="the systems to measure")
parser_find = subparsers.add_parser("findcommander", parser_find = subparsers.add_parser("findcommander",
help="Attempts to find a CMDRs last known position. Will exit with code 1 " help="Attempts to find a CMDRs last known position. Will exit with code 1 "
+ "on server error and code 2 if the CMDR could not be found on EDSM.") + "on server error and code 2 if the CMDR could not be found on EDSM.")
parser_find.add_argument("name") parser_find.add_argument("name", help="the commander in question")
parser_find.add_argument("apikey", default="", nargs="?", parser_find.add_argument("apikey", default="", nargs="?",
help="the commanders EDSM API key. Can be empty for public profiles.") help="the commanders EDSM API key. Can be empty for public profiles.")