yadm icon indicating copy to clipboard operation
yadm copied to clipboard

Usage help does not consider paths provided on commandline

Open xeruf opened this issue 3 years ago • 3 comments

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 avatar Oct 14 '21 10:10 xeruf

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[bot] avatar Dec 23 '21 02:12 github-actions[bot]

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[bot] avatar Feb 26 '22 01:02 github-actions[bot]

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

xeruf avatar Mar 04 '22 08:03 xeruf