diff options
author | Alasdair <alnessy@hotmail.com> | 2013-08-23 19:31:53 +0200 |
---|---|---|
committer | Alasdair <alnessy@hotmail.com> | 2013-08-23 19:31:53 +0200 |
commit | 14cc7fe8d974e92e1022064ef90f6d22a98fe23f (patch) | |
tree | aba16e3911387938bfa77e100103a3f26cc104b3 | |
parent | db76e721914a0128e4f4afb3fabdb8d7ffaec78a (diff) |
adding better usage
-rwxr-xr-x | wikiquery | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -7,7 +7,7 @@ import wikipedia version = "0.0.1" def parse_args(): - parser = argparse.ArgumentParser() + parser = argparse.ArgumentParser(prog="!wiki", usage="%(prog)s <topic> [--search|--url]") parser.add_argument("topic", nargs="*") parser.add_argument("--search", action="store_true") |