Skip to content

Commit

Permalink
fix: Convert options from - to -- where it makes sense (#329)
Browse files Browse the repository at this point in the history
* fix: Convert options from - to -- where it makes sense

* Reformatted code to pass Black linter

---------

Co-authored-by: Pedro Garcia Rodriguez <[email protected]>
  • Loading branch information
BreakingPitt and Pedro Garcia Rodriguez authored Aug 24, 2023
1 parent 05203bd commit af9c17b
Showing 1 changed file with 19 additions and 17 deletions.
36 changes: 19 additions & 17 deletions shallow_backup/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,80 +19,82 @@
"--add-dot", default=None, help="Add a dotfile or dotfolder to config by path."
)
@click.option(
"-backup-all", "backup_all_flag", is_flag=True, default=False, help="Full back up."
"--backup-all", "backup_all_flag", is_flag=True, default=False, help="Full back up."
)
@click.option(
"-backup-configs",
"--backup-configs",
"backup_configs_flag",
is_flag=True,
default=False,
help="Back up app config files.",
)
@click.option(
"-backup-dots",
"--backup-dots",
"backup_dots_flag",
is_flag=True,
default=False,
help="Back up dotfiles.",
)
@click.option(
"-backup-fonts",
"--backup-fonts",
"backup_fonts_flag",
is_flag=True,
default=False,
help="Back up installed fonts.",
)
@click.option(
"-backup-packages",
"--backup-packages",
"backup_packages_flag",
is_flag=True,
default=False,
help="Back up package libraries.",
)
@click.option("-delete-config", is_flag=True, default=False, help="Delete config file.")
@click.option(
"-destroy-backup", is_flag=True, default=False, help="Delete backup directory."
"--delete-config", is_flag=True, default=False, help="Delete config file."
)
@click.option(
"-dry-run",
"--destroy-backup", is_flag=True, default=False, help="Delete backup directory."
)
@click.option(
"--dry-run",
is_flag=True,
default=False,
help="Don't backup or reinstall any files, just give verbose output.",
)
@click.option("--new-path", default=None, help="Input a new back up directory path.")
@click.option(
"-no-new-backup-path-prompt",
"--no-new-backup-path-prompt",
is_flag=True,
default=False,
help="Skip setting new back up directory path prompt.",
)
@click.option(
"-no-splash", is_flag=True, default=False, help="Don't display splash screen."
"--no-splash", is_flag=True, default=False, help="Don't display splash screen."
)
@click.option(
"-reinstall-all", is_flag=True, default=False, help="Full reinstallation."
"--reinstall-all", is_flag=True, default=False, help="Full reinstallation."
)
@click.option(
"-reinstall-configs", is_flag=True, default=False, help="Reinstall configs."
"--reinstall-configs", is_flag=True, default=False, help="Reinstall configs."
)
@click.option(
"-reinstall-dots",
"--reinstall-dots",
is_flag=True,
default=False,
help="Reinstall dotfiles and dotfolders.",
)
@click.option("-reinstall-fonts", is_flag=True, default=False, help="Reinstall fonts.")
@click.option("--reinstall-fonts", is_flag=True, default=False, help="Reinstall fonts.")
@click.option(
"-reinstall-packages", is_flag=True, default=False, help="Reinstall packages."
"--reinstall-packages", is_flag=True, default=False, help="Reinstall packages."
)
@click.option("--remote", default=None, help="Set remote URL for the git repo.")
@click.option(
"-separate-dotfiles-repo",
"--separate-dotfiles-repo",
is_flag=True,
default=False,
help="Use if you are trying to maintain a separate dotfiles repo and running into issue #229.",
)
@click.option("-show", is_flag=True, default=False, help="Display config file.")
@click.option("--show", is_flag=True, default=False, help="Display config file.")
@click.option(
"--version",
"-v",
Expand Down

0 comments on commit af9c17b

Please sign in to comment.