Move DOCSTRING above rarpar_argparse def.
This commit is contained in:
parent
55bd1d07a8
commit
437d2bdd48
1 changed files with 16 additions and 14 deletions
30
rarpar.py
30
rarpar.py
|
@ -328,20 +328,7 @@ def rarpar(
|
||||||
|
|
||||||
return status
|
return status
|
||||||
|
|
||||||
def rarpar_argparse(args):
|
# COMMAND LINE #####################################################################################
|
||||||
return rarpar(
|
|
||||||
path=args.path,
|
|
||||||
volume=args.volume,
|
|
||||||
basename=args.basename,
|
|
||||||
dry=args.dry,
|
|
||||||
moveto=args.moveto,
|
|
||||||
par=args.par,
|
|
||||||
password=args.password,
|
|
||||||
rec=args.rec,
|
|
||||||
rev=args.rev,
|
|
||||||
recycle_original=args.recycle_original,
|
|
||||||
workdir=args.workdir,
|
|
||||||
)
|
|
||||||
|
|
||||||
DOCSTRING = '''
|
DOCSTRING = '''
|
||||||
rarpar
|
rarpar
|
||||||
|
@ -398,6 +385,21 @@ path:
|
||||||
Print the commands that will be run, but don't actually run them.
|
Print the commands that will be run, but don't actually run them.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
def rarpar_argparse(args):
|
||||||
|
return rarpar(
|
||||||
|
path=args.path,
|
||||||
|
volume=args.volume,
|
||||||
|
basename=args.basename,
|
||||||
|
dry=args.dry,
|
||||||
|
moveto=args.moveto,
|
||||||
|
par=args.par,
|
||||||
|
password=args.password,
|
||||||
|
rec=args.rec,
|
||||||
|
rev=args.rev,
|
||||||
|
recycle_original=args.recycle_original,
|
||||||
|
workdir=args.workdir,
|
||||||
|
)
|
||||||
|
|
||||||
def main(argv):
|
def main(argv):
|
||||||
parser = argparse.ArgumentParser(description=__doc__)
|
parser = argparse.ArgumentParser(description=__doc__)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue