Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage help does not consider paths provided on commandline #376

Open
xeruf opened this issue Oct 14, 2021 · 3 comments
Open

Usage help does not consider paths provided on commandline #376

xeruf opened this issue Oct 14, 2021 · 3 comments
Labels

Comments

@xeruf
Copy link

xeruf commented Oct 14, 2021

Describe the bug

Yadm does not list the actual file paths if updated paths are provided in the CLI.

To reproduce

❯ yadm --yadm-dir /etc/yadm --yadm-data /etc/yadm
Usage: yadm <command> [options...]

Manage dotfiles maintained in a Git repository. Manage alternate files
for specific systems or hosts. Encrypt/decrypt private files.

Git Commands:
Any Git command or alias can be used as a <command>. It will operate
on yadm's repository and files in the work tree (usually $HOME).

Commands:
  yadm init [-f]             - Initialize an empty repository
  yadm clone <url> [-f]      - Clone an existing repository
  yadm config <name> <value> - Configure a setting
  yadm list [-a]             - List tracked files
  yadm alt                   - Create links for alternates
  yadm bootstrap             - Execute $HOME/.config/yadm/bootstrap
  yadm encrypt               - Encrypt files
  yadm decrypt [-l]          - Decrypt files
  yadm perms                 - Fix perms for private files
  yadm enter [COMMAND]       - Run sub-shell with GIT variables set
  yadm git-crypt [OPTIONS]   - Run git-crypt commands for the yadm repo
  yadm transcrypt [OPTIONS]  - Run transcrypt commands for the yadm repo

Files:
  $HOME/.config/yadm/config        - yadm's configuration file
  $HOME/.config/yadm/encrypt       - List of globs to encrypt/decrypt
  $HOME/.config/yadm/bootstrap     - Script run via: yadm bootstrap
  $HOME/.local/share/yadm/repo.git - yadm's Git repository
  $HOME/.local/share/yadm/archive  - Encrypted data stored here

Use "man yadm" for complete documentation.

Expected behavior

The file paths show the actual paths after CLI modifications.

Environment

  • Operating system: arch
  • Version yadm: 3.1.1
  • Version Git: 2.33.0
@xeruf xeruf added the bug label Oct 14, 2021
@github-actions
Copy link

This issue has been labeled as stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions
Copy link

This issue has been labeled as stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@xeruf
Copy link
Author

xeruf commented Mar 4, 2022

@TheLocehiliosan maybe add a "verified" label or something to prevent the stale-bot from jumping in repeatedly on a long-term issue ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants