sane-bt-*: add top-level docs
This commit is contained in:
@@ -8,7 +8,7 @@ from sane_bt import MediaMeta, TransmissionApi
|
||||
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser()
|
||||
parser = argparse.ArgumentParser(description="instruct servo to download some torrent")
|
||||
TransmissionApi.add_arguments(parser)
|
||||
MediaMeta.add_arguments(parser)
|
||||
parser.add_argument("torrent", help="magnet: URI or file path to torrent")
|
||||
|
@@ -2,15 +2,13 @@
|
||||
#!nix-shell -i python3 -p "python3.withPackages (ps: [ ps.sane-lib.bt ])" -p transmission
|
||||
# vim: set filetype=python :
|
||||
|
||||
# removes a torrent and trashes its data
|
||||
|
||||
import argparse
|
||||
|
||||
from sane_bt import TransmissionApi
|
||||
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser()
|
||||
parser = argparse.ArgumentParser(description="remove a torrent and trash its data")
|
||||
TransmissionApi.add_arguments(parser)
|
||||
parser.add_argument("torrent", help="numerical ID of the torrent in the transmission list (see sane-bt-show)")
|
||||
|
||||
|
@@ -7,7 +7,7 @@ import argparse
|
||||
from sane_bt import MediaMeta, TransmissionApi
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser()
|
||||
parser = argparse.ArgumentParser(description="show information about one or more torrents on servo")
|
||||
TransmissionApi.add_arguments(parser)
|
||||
parser.add_argument("torrents", nargs="*", help="torrent id to show (acquire by first calling with no args)")
|
||||
|
||||
|
Reference in New Issue
Block a user