Skip to content

Commit c1c9ce6

Browse files
authored
Merge pull request josegonzalez#45 from remram44/cli-programname
Fix program name
2 parents ab18d8a + 9d7d98b commit c1c9ce6

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

README.rst

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ Usage
2525

2626
CLI Usage is as follows::
2727

28-
Github Backup [-h] [-u USERNAME] [-p PASSWORD] [-t TOKEN]
29-
[-o OUTPUT_DIRECTORY] [--starred] [--watched] [--all]
30-
[--issues] [--issue-comments] [--issue-events] [--pulls]
31-
[--pull-comments] [--pull-commits] [--labels] [--hooks]
32-
[--milestones] [--repositories] [--wikis]
33-
[--skip-existing] [-L [LANGUAGES [LANGUAGES ...]]]
34-
[-N NAME_REGEX] [-H GITHUB_HOST] [-O] [-R REPOSITORY]
35-
[-P] [-F] [--prefer-ssh] [-v]
36-
USER
28+
github-backup [-h] [-u USERNAME] [-p PASSWORD] [-t TOKEN]
29+
[-o OUTPUT_DIRECTORY] [-i] [--starred] [--watched]
30+
[--all] [--issues] [--issue-comments] [--issue-events]
31+
[--pulls] [--pull-comments] [--pull-commits] [--labels]
32+
[--hooks] [--milestones] [--repositories] [--wikis]
33+
[--skip-existing] [-L [LANGUAGES [LANGUAGES ...]]]
34+
[-N NAME_REGEX] [-H GITHUB_HOST] [-O] [-R REPOSITORY]
35+
[-P] [-F] [--prefer-ssh] [-v]
36+
USER
3737

3838
Backup a github account
3939

@@ -51,6 +51,7 @@ CLI Usage is as follows::
5151
personal access or OAuth token
5252
-o OUTPUT_DIRECTORY, --output-directory OUTPUT_DIRECTORY
5353
directory at which to backup the repositories
54+
-i, --incremental incremental backup
5455
--starred include starred repositories in backup
5556
--watched include watched repositories in backup
5657
--all include everything in backup

bin/github-backup

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,7 @@ def mask_password(url, secret='*****'):
107107
return url.replace(parsed.password, secret)
108108

109109
def parse_args():
110-
parser = argparse.ArgumentParser(description='Backup a github account',
111-
prog='Github Backup')
110+
parser = argparse.ArgumentParser(description='Backup a github account')
112111
parser.add_argument('user',
113112
metavar='USER',
114113
type=str,

0 commit comments

Comments
 (0)