sort exporter option by alphabetical order

This commit is contained in:
Matthieu Helleboid
2023-01-20 20:59:09 +01:00
committed by Trenton H
parent ec02009c91
commit b9807c96ae
2 changed files with 47 additions and 47 deletions

View File

@@ -53,14 +53,6 @@ class Command(BaseCommand):
def add_arguments(self, parser):
parser.add_argument("target")
parser.add_argument(
"-sm",
"--split-manifest",
default=False,
action="store_true",
help="Export document information in individual manifest json files.",
)
parser.add_argument(
"-c",
"--compare-checksums",
@@ -71,24 +63,6 @@ class Command(BaseCommand):
"modified is used instead.",
)
parser.add_argument(
"-f",
"--use-filename-format",
default=False,
action="store_true",
help="Use PAPERLESS_FILENAME_FORMAT for storing files in the "
"export directory, if configured.",
)
parser.add_argument(
"-p",
"--use-filename-prefix",
default=False,
action="store_true",
help="Export files in dedicated folders according to their nature: "
"archive, originals or thumbnails",
)
parser.add_argument(
"-d",
"--delete",
@@ -99,6 +73,15 @@ class Command(BaseCommand):
"deleted documents.",
)
parser.add_argument(
"-f",
"--use-filename-format",
default=False,
action="store_true",
help="Use PAPERLESS_FILENAME_FORMAT for storing files in the "
"export directory, if configured.",
)
parser.add_argument(
"-na",
"--no-archive",
@@ -116,10 +99,20 @@ class Command(BaseCommand):
)
parser.add_argument(
"--no-progress-bar",
"-p",
"--use-filename-prefix",
default=False,
action="store_true",
help="If set, the progress bar will not be shown",
help="Export files in dedicated folders according to their nature: "
"archive, originals or thumbnails",
)
parser.add_argument(
"-sm",
"--split-manifest",
default=False,
action="store_true",
help="Export document information in individual manifest json files.",
)
parser.add_argument(
@@ -130,6 +123,13 @@ class Command(BaseCommand):
help="Export the documents to a zip file in the given directory",
)
parser.add_argument(
"--no-progress-bar",
default=False,
action="store_true",
help="If set, the progress bar will not be shown",
)
def __init__(self, *args, **kwargs):
BaseCommand.__init__(self, *args, **kwargs)
self.target: Path = None